@opentiny/tiny-robot 0.2.0-alpha.3 → 0.2.0-alpha.5

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
@@ -29,6 +29,7 @@ import { RendererNode } from 'vue';
29
29
  import { ShallowUnwrapRef } from 'vue';
30
30
  import { Slot } from 'vue';
31
31
  import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
32
+ import { SuggestionPillItem as SuggestionPillItem_2 } from './index.type';
32
33
  import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
33
34
  import { ThemeType as ThemeType_2 } from './index.type';
34
35
  import { VNode } from 'vue';
@@ -44,13 +45,50 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
44
45
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
45
46
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
46
47
 
47
- declare const __VLS_component_2: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
48
+ declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
49
+ "update:selectedGroup": (value: string) => any;
50
+ } & {
51
+ "item-click": (item: SuggestionItem_2) => any;
52
+ close: () => any;
53
+ open: () => any;
54
+ "group-click": (group: SuggestionGroup) => any;
55
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
56
+ "onItem-click"?: ((item: SuggestionItem_2) => any) | undefined;
57
+ onClose?: (() => any) | undefined;
58
+ onOpen?: (() => any) | undefined;
59
+ "onGroup-click"?: ((group: SuggestionGroup) => any) | undefined;
60
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
61
+ }>, {
62
+ title: string;
63
+ topOffset: string | number;
64
+ trigger: "click" | "manual";
65
+ groupShowMoreTrigger: "click" | "hover";
66
+ popoverWidth: string | number;
67
+ popoverHeight: string | number;
68
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
69
+ 'popover-trigger': HTMLDivElement;
70
+ popover: HTMLDivElement;
71
+ }, HTMLDivElement>;
72
+
73
+ declare const __VLS_component_2: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
74
+ "item-click": (item: DropdownMenuItem) => any;
75
+ }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
76
+ "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
77
+ }>, {
78
+ minWidth: string | number;
79
+ topOffset: string | number;
80
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
81
+ 'dropdown-menu-trigger': HTMLDivElement;
82
+ 'dropdown-menu': HTMLDivElement;
83
+ }, HTMLDivElement>;
84
+
85
+ declare const __VLS_component_3: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
48
86
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
49
87
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
50
88
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
51
89
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
52
90
 
53
- declare const __VLS_component_3: DefineComponent<SenderProps, {
91
+ declare const __VLS_component_4: DefineComponent<SenderProps, {
54
92
  focus: () => void;
55
93
  blur: () => void;
56
94
  clear: () => void;
@@ -67,9 +105,9 @@ activateTemplateFirstField: () => void;
67
105
  }>, {
68
106
  loading: boolean;
69
107
  template: string;
108
+ mode: InputMode_2;
70
109
  disabled: boolean;
71
110
  modelValue: string;
72
- mode: InputMode_2;
73
111
  autofocus: boolean;
74
112
  clearable: boolean;
75
113
  showWordLimit: boolean;
@@ -78,25 +116,34 @@ hasContent: boolean;
78
116
  allowSpeech: boolean;
79
117
  allowFiles: boolean;
80
118
  submitType: SubmitTrigger_2;
81
- placeholder: string;
82
119
  autoSize: AutoSize_2;
83
120
  maxLength: number;
121
+ placeholder: string;
122
+ suggestions: string[];
123
+ templateInitialValues: Record<string, string>;
84
124
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
125
+ senderRef: HTMLDivElement;
126
+ inputWrapperRef: HTMLDivElement;
85
127
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<TemplateEditorProps_2> & Readonly<{
86
128
  onInput?: ((value: string) => any) | undefined;
129
+ onBlur?: ((event: FocusEvent) => any) | undefined;
130
+ onFocus?: ((event: FocusEvent) => any) | undefined;
131
+ onSubmit?: ((value: string) => any) | undefined;
87
132
  "onUpdate:value"?: ((value: string) => any) | undefined;
88
133
  "onContent-status"?: ((hasContent: boolean) => any) | undefined;
89
- "onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
90
134
  }>, {
91
135
  activateFirstField: () => void;
92
136
  resetFields: () => void;
137
+ focus: () => void;
93
138
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
94
139
  input: (value: string) => any;
140
+ blur: (event: FocusEvent) => any;
141
+ focus: (event: FocusEvent) => any;
142
+ submit: (value: string) => any;
95
143
  "update:value": (value: string) => any;
96
144
  "content-status": (hasContent: boolean) => any;
97
- "field-active": (isActive: boolean, index: number) => any;
98
145
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
99
- editorRef: HTMLDivElement;
146
+ contentEditableRef: HTMLDivElement;
100
147
  }, HTMLDivElement, ComponentProvideOptions, {
101
148
  P: {};
102
149
  B: {};
@@ -106,12 +153,15 @@ M: {};
106
153
  Defaults: {};
107
154
  }, Readonly<TemplateEditorProps_2> & Readonly<{
108
155
  onInput?: ((value: string) => any) | undefined;
156
+ onBlur?: ((event: FocusEvent) => any) | undefined;
157
+ onFocus?: ((event: FocusEvent) => any) | undefined;
158
+ onSubmit?: ((value: string) => any) | undefined;
109
159
  "onUpdate:value"?: ((value: string) => any) | undefined;
110
160
  "onContent-status"?: ((hasContent: boolean) => any) | undefined;
111
- "onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
112
161
  }>, {
113
162
  activateFirstField: () => void;
114
163
  resetFields: () => void;
164
+ focus: () => void;
115
165
  }, {}, {}, {}, {}> | null;
116
166
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
117
167
  _constants: {
@@ -561,13 +611,15 @@ textAlign: string;
561
611
  showTooltip: boolean;
562
612
  inputBoxType: string;
563
613
  }> | null;
614
+ buttonsContainerRef: HTMLDivElement;
615
+ suggestionsListRef: HTMLDivElement;
564
616
  }, HTMLDivElement>;
565
617
 
566
- declare const __VLS_component_4: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
618
+ declare const __VLS_component_5: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
567
619
  align: "left" | "center" | "right" | string;
568
620
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
569
621
 
570
- declare const __VLS_component_5: DefineComponent<SuggestionProps, {
622
+ declare const __VLS_component_6: DefineComponent<SuggestionProps, {
571
623
  trigger: TriggerHandler;
572
624
  keyDown: (e: KeyboardEvent) => void;
573
625
  input: (event: Event, text: string) => boolean;
@@ -740,7 +792,17 @@ empty?(_: {}): any;
740
792
  }) | null;
741
793
  }, HTMLDivElement>;
742
794
 
743
- declare const __VLS_component_6: DefineComponent<QuestionProps, {
795
+ declare const __VLS_component_7: DefineComponent<SuggestionPillsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
796
+ "item-click": (item: SuggestionPillItem_2<Record<string, unknown>>) => any;
797
+ }, string, PublicProps, Readonly<SuggestionPillsProps> & Readonly<{
798
+ "onItem-click"?: ((item: SuggestionPillItem_2<Record<string, unknown>>) => any) | undefined;
799
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
800
+ container: HTMLDivElement;
801
+ }, HTMLDivElement>;
802
+
803
+ declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
804
+
805
+ declare const __VLS_component_9: DefineComponent<QuestionProps, {
744
806
  openModal: () => void;
745
807
  closeModal: () => void;
746
808
  toggleFloating: () => void;
@@ -762,11 +824,17 @@ initialExpanded: boolean;
762
824
  theme: ThemeType_2;
763
825
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
764
826
 
827
+ declare type __VLS_Props = SuggestionPopoverProps;
828
+
765
829
  declare type __VLS_PublicProps = {
766
830
  'show': ContainerProps['show'];
767
831
  'fullscreen'?: ContainerProps['fullscreen'];
768
832
  };
769
833
 
834
+ declare type __VLS_PublicProps_2 = {
835
+ 'selectedGroup'?: string;
836
+ } & __VLS_Props;
837
+
770
838
  declare function __VLS_template(): {
771
839
  attrs: Partial<{}>;
772
840
  slots: Readonly<ContainerSlots> & ContainerSlots;
@@ -774,37 +842,67 @@ declare function __VLS_template(): {
774
842
  rootEl: HTMLDivElement;
775
843
  };
776
844
 
845
+ declare function __VLS_template_10(): {
846
+ attrs: Partial<{}>;
847
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
848
+ refs: {
849
+ 'popover-trigger': HTMLDivElement;
850
+ popover: HTMLDivElement;
851
+ };
852
+ rootEl: HTMLDivElement;
853
+ };
854
+
777
855
  declare function __VLS_template_2(): {
856
+ attrs: Partial<{}>;
857
+ slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
858
+ refs: {
859
+ 'dropdown-menu-trigger': HTMLDivElement;
860
+ 'dropdown-menu': HTMLDivElement;
861
+ };
862
+ rootEl: HTMLDivElement;
863
+ };
864
+
865
+ declare function __VLS_template_3(): {
778
866
  attrs: Partial<{}>;
779
867
  slots: Readonly<PromptsSlots> & PromptsSlots;
780
868
  refs: {};
781
869
  rootEl: HTMLDivElement;
782
870
  };
783
871
 
784
- declare function __VLS_template_3(): {
872
+ declare function __VLS_template_4(): {
785
873
  attrs: Partial<{}>;
786
874
  slots: {
787
875
  header?(_: {}): any;
788
876
  prefix?(_: {}): any;
877
+ decorativeContent?(_: {}): any;
789
878
  actions?(_: {}): any;
879
+ 'footer-left'?(_: {}): any;
880
+ 'footer-right'?(_: {}): any;
790
881
  footer?(_: {}): any;
791
882
  };
792
883
  refs: {
884
+ senderRef: HTMLDivElement;
885
+ inputWrapperRef: HTMLDivElement;
793
886
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<TemplateEditorProps_2> & Readonly<{
794
887
  onInput?: ((value: string) => any) | undefined;
888
+ onBlur?: ((event: FocusEvent) => any) | undefined;
889
+ onFocus?: ((event: FocusEvent) => any) | undefined;
890
+ onSubmit?: ((value: string) => any) | undefined;
795
891
  "onUpdate:value"?: ((value: string) => any) | undefined;
796
892
  "onContent-status"?: ((hasContent: boolean) => any) | undefined;
797
- "onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
798
893
  }>, {
799
894
  activateFirstField: () => void;
800
895
  resetFields: () => void;
896
+ focus: () => void;
801
897
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
802
898
  input: (value: string) => any;
899
+ blur: (event: FocusEvent) => any;
900
+ focus: (event: FocusEvent) => any;
901
+ submit: (value: string) => any;
803
902
  "update:value": (value: string) => any;
804
903
  "content-status": (hasContent: boolean) => any;
805
- "field-active": (isActive: boolean, index: number) => any;
806
904
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
807
- editorRef: HTMLDivElement;
905
+ contentEditableRef: HTMLDivElement;
808
906
  }, HTMLDivElement, ComponentProvideOptions, {
809
907
  P: {};
810
908
  B: {};
@@ -814,12 +912,15 @@ declare function __VLS_template_3(): {
814
912
  Defaults: {};
815
913
  }, Readonly<TemplateEditorProps_2> & Readonly<{
816
914
  onInput?: ((value: string) => any) | undefined;
915
+ onBlur?: ((event: FocusEvent) => any) | undefined;
916
+ onFocus?: ((event: FocusEvent) => any) | undefined;
917
+ onSubmit?: ((value: string) => any) | undefined;
817
918
  "onUpdate:value"?: ((value: string) => any) | undefined;
818
919
  "onContent-status"?: ((hasContent: boolean) => any) | undefined;
819
- "onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
820
920
  }>, {
821
921
  activateFirstField: () => void;
822
922
  resetFields: () => void;
923
+ focus: () => void;
823
924
  }, {}, {}, {}, {}> | null;
824
925
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
825
926
  _constants: {
@@ -1269,18 +1370,20 @@ declare function __VLS_template_3(): {
1269
1370
  showTooltip: boolean;
1270
1371
  inputBoxType: string;
1271
1372
  }> | null;
1373
+ buttonsContainerRef: HTMLDivElement;
1374
+ suggestionsListRef: HTMLDivElement;
1272
1375
  };
1273
1376
  rootEl: HTMLDivElement;
1274
1377
  };
1275
1378
 
1276
- declare function __VLS_template_4(): {
1379
+ declare function __VLS_template_5(): {
1277
1380
  attrs: Partial<{}>;
1278
1381
  slots: Readonly<WelcomeSlots> & WelcomeSlots;
1279
1382
  refs: {};
1280
1383
  rootEl: HTMLDivElement;
1281
1384
  };
1282
1385
 
1283
- declare function __VLS_template_5(): {
1386
+ declare function __VLS_template_6(): {
1284
1387
  attrs: Partial<{}>;
1285
1388
  slots: {
1286
1389
  'capsule-icon'?(_: {
@@ -1443,7 +1546,25 @@ declare function __VLS_template_5(): {
1443
1546
  rootEl: HTMLDivElement;
1444
1547
  };
1445
1548
 
1446
- declare function __VLS_template_6(): {
1549
+ declare function __VLS_template_7(): {
1550
+ attrs: Partial<{}>;
1551
+ slots: {
1552
+ default?(_: {}): any;
1553
+ };
1554
+ refs: {
1555
+ container: HTMLDivElement;
1556
+ };
1557
+ rootEl: HTMLDivElement;
1558
+ };
1559
+
1560
+ declare function __VLS_template_8(): {
1561
+ attrs: Partial<{}>;
1562
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1563
+ refs: {};
1564
+ rootEl: HTMLButtonElement;
1565
+ };
1566
+
1567
+ declare function __VLS_template_9(): {
1447
1568
  attrs: Partial<{}>;
1448
1569
  slots: {
1449
1570
  'category-label'?(_: {
@@ -1462,6 +1583,8 @@ declare function __VLS_template_6(): {
1462
1583
 
1463
1584
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1464
1585
 
1586
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1587
+
1465
1588
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1466
1589
 
1467
1590
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1472,12 +1595,24 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
1472
1595
 
1473
1596
  declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
1474
1597
 
1598
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
1599
+
1600
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1601
+
1602
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1603
+
1475
1604
  declare type __VLS_WithTemplateSlots<T, S> = T & {
1476
1605
  new (): {
1477
1606
  $slots: S;
1478
1607
  };
1479
1608
  };
1480
1609
 
1610
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1611
+ new (): {
1612
+ $slots: S;
1613
+ };
1614
+ };
1615
+
1481
1616
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1482
1617
  new (): {
1483
1618
  $slots: S;
@@ -1508,6 +1643,24 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
1508
1643
  };
1509
1644
  };
1510
1645
 
1646
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
1647
+ new (): {
1648
+ $slots: S;
1649
+ };
1650
+ };
1651
+
1652
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
1653
+ new (): {
1654
+ $slots: S;
1655
+ };
1656
+ };
1657
+
1658
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1659
+ new (): {
1660
+ $slots: S;
1661
+ };
1662
+ };
1663
+
1511
1664
  export declare interface ActionButtonsProps {
1512
1665
  loading?: boolean;
1513
1666
  disabled?: boolean;
@@ -1521,6 +1674,7 @@ export declare interface ActionButtonsProps {
1521
1674
  allowFiles?: boolean;
1522
1675
  submitType?: SubmitTrigger;
1523
1676
  showShortcuts?: boolean;
1677
+ isOverLimit?: boolean;
1524
1678
  }
1525
1679
 
1526
1680
  export declare type AutoSize = boolean | {
@@ -1545,7 +1699,7 @@ export { Bubble as TrBubble }
1545
1699
 
1546
1700
  declare const bubbleInstall: (app: App) => void;
1547
1701
 
1548
- declare const BubbleList: typeof _default_11 & {
1702
+ declare const BubbleList: typeof _default_14 & {
1549
1703
  install: typeof bubbleListInstall;
1550
1704
  };
1551
1705
  export { BubbleList }
@@ -1651,21 +1805,41 @@ declare const _default: {
1651
1805
  };
1652
1806
  export default _default;
1653
1807
 
1654
- declare const _default_10: typeof _default_21 & {
1808
+ declare const _default_10: typeof _default_24 & {
1655
1809
  install: typeof install_8;
1656
1810
  };
1657
- export { _default_10 as Question }
1658
- export { _default_10 as TrQuestion }
1811
+ export { _default_10 as Suggestion }
1812
+ export { _default_10 as TrSuggestion }
1813
+
1814
+ declare const _default_11: typeof _default_25 & {
1815
+ install: typeof install_9;
1816
+ };
1817
+ export { _default_11 as SuggestionPills }
1818
+ export { _default_11 as TrSuggestionPills }
1819
+
1820
+ declare const _default_12: typeof _default_27 & {
1821
+ install: typeof install_10;
1822
+ };
1823
+ export { _default_12 as Question }
1824
+ export { _default_12 as TrQuestion }
1659
1825
 
1660
- declare const _default_11: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1826
+ declare const _default_13: typeof _default_28 & {
1827
+ install: typeof install_11;
1828
+ };
1829
+ export { _default_13 as SuggestionPopover }
1830
+ export { _default_13 as TrSuggestionPopover }
1831
+
1832
+ declare const _default_14: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1661
1833
  scrollContainer: HTMLDivElement;
1662
1834
  }, HTMLDivElement>;
1663
1835
 
1664
- declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1836
+ declare const _default_15: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1837
+
1838
+ declare const _default_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1665
1839
 
1666
- declare const _default_13: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1840
+ declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1667
1841
 
1668
- declare const _default_14: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1842
+ declare const _default_18: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1669
1843
  operation: (name: string) => any;
1670
1844
  action: (name: string) => any;
1671
1845
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -1677,71 +1851,100 @@ actionsLimit: number;
1677
1851
  sourcesLinesLimit: number;
1678
1852
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1679
1853
 
1680
- declare const _default_15: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1854
+ declare const _default_19: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1681
1855
  size: string | number;
1682
1856
  svgSize: string | number;
1683
1857
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
1684
1858
 
1685
- declare const _default_16: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1686
-
1687
- declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1688
-
1689
- declare const _default_18: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1690
-
1691
- declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1692
-
1693
- declare const _default_2: typeof _default_12 & {
1859
+ declare const _default_2: typeof _default_15 & {
1694
1860
  install: typeof install;
1695
1861
  };
1696
1862
  export { _default_2 as Container }
1697
1863
  export { _default_2 as TrContainer }
1698
1864
 
1699
- declare const _default_20: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1865
+ declare const _default_20: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1866
+
1867
+ declare const _default_21: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1868
+
1869
+ declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1700
1870
 
1701
- declare const _default_21: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1871
+ declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1702
1872
 
1703
- declare const _default_3: typeof _default_13 & {
1873
+ declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1874
+
1875
+ declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1876
+
1877
+ declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1878
+
1879
+ declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1880
+
1881
+ declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1882
+
1883
+ declare const _default_3: typeof _default_16 & {
1704
1884
  install: typeof install_2;
1705
1885
  };
1706
1886
  export { _default_3 as Conversations }
1707
1887
  export { _default_3 as TrConversations }
1708
1888
 
1709
- declare const _default_4: typeof _default_14 & {
1889
+ declare const _default_4: typeof _default_17 & {
1710
1890
  install: typeof install_3;
1711
1891
  };
1712
- export { _default_4 as Feedback }
1713
- export { _default_4 as TrFeedback }
1892
+ export { _default_4 as DropdownMenu }
1893
+ export { _default_4 as TrDropdownMenu }
1714
1894
 
1715
- declare const _default_5: {
1716
- install: <T>(app: App<T>) => void;
1717
- name: string;
1895
+ declare const _default_5: typeof _default_18 & {
1896
+ install: typeof install_4;
1718
1897
  };
1719
- export { _default_5 as History }
1720
- export { _default_5 as TrHistory }
1898
+ export { _default_5 as Feedback }
1899
+ export { _default_5 as TrFeedback }
1721
1900
 
1722
- declare const _default_6: typeof _default_15 & {
1723
- install: typeof install_4;
1901
+ declare const _default_6: {
1902
+ install: <T>(app: App<T>) => void;
1903
+ name: string;
1724
1904
  };
1725
- export { _default_6 as IconButton }
1726
- export { _default_6 as TrIconButton }
1905
+ export { _default_6 as History }
1906
+ export { _default_6 as TrHistory }
1727
1907
 
1728
- declare const _default_7: typeof _default_18 & {
1908
+ declare const _default_7: typeof _default_19 & {
1729
1909
  install: typeof install_5;
1730
1910
  };
1731
- export { _default_7 as Sender }
1732
- export { _default_7 as TrSender }
1911
+ export { _default_7 as IconButton }
1912
+ export { _default_7 as TrIconButton }
1733
1913
 
1734
- declare const _default_8: typeof _default_19 & {
1914
+ declare const _default_8: typeof _default_22 & {
1735
1915
  install: typeof install_6;
1736
1916
  };
1737
- export { _default_8 as TrWelcome }
1738
- export { _default_8 as Welcome }
1917
+ export { _default_8 as Sender }
1918
+ export { _default_8 as TrSender }
1739
1919
 
1740
- declare const _default_9: typeof _default_20 & {
1920
+ declare const _default_9: typeof _default_23 & {
1741
1921
  install: typeof install_7;
1742
1922
  };
1743
- export { _default_9 as Suggestion }
1744
- export { _default_9 as TrSuggestion }
1923
+ export { _default_9 as TrWelcome }
1924
+ export { _default_9 as Welcome }
1925
+
1926
+ export declare interface DropdownMenuEmits {
1927
+ (e: 'item-click', item: DropdownMenuItem): void;
1928
+ }
1929
+
1930
+ export declare interface DropdownMenuEvents {
1931
+ itemClick?: (item: DropdownMenuItem) => void;
1932
+ }
1933
+
1934
+ export declare interface DropdownMenuItem {
1935
+ id: string;
1936
+ text: string;
1937
+ }
1938
+
1939
+ export declare interface DropdownMenuProps {
1940
+ items: DropdownMenuItem[];
1941
+ minWidth?: string | number;
1942
+ topOffset?: string | number;
1943
+ }
1944
+
1945
+ export declare interface DropdownMenuSlots {
1946
+ default?: () => unknown;
1947
+ }
1745
1948
 
1746
1949
  export declare interface FeedbackEvents {
1747
1950
  (e: 'operation', name: string): void;
@@ -1815,6 +2018,10 @@ export declare type InputMode = 'single' | 'multiple';
1815
2018
 
1816
2019
  declare const install: <T>(app: App<T>) => void;
1817
2020
 
2021
+ declare const install_10: <T>(app: App<T>) => void;
2022
+
2023
+ declare const install_11: <T>(app: App<T>) => void;
2024
+
1818
2025
  declare const install_2: <T>(app: App<T>) => void;
1819
2026
 
1820
2027
  declare const install_3: <T>(app: App<T>) => void;
@@ -1829,6 +2036,10 @@ declare const install_7: <T>(app: App<T>) => void;
1829
2036
 
1830
2037
  declare const install_8: <T>(app: App<T>) => void;
1831
2038
 
2039
+ declare const install_9: <T>(app: App<T>) => void;
2040
+
2041
+ declare const installPillButton: <T>(app: App<T>) => void;
2042
+
1832
2043
  declare const installPrompt: <T>(app: App<T>) => void;
1833
2044
 
1834
2045
  declare const installPrompts: <T>(app: App<T>) => void;
@@ -1846,7 +2057,7 @@ export declare type MultiTabHistoryProps = {
1846
2057
  data: Record<string, HistoryData>;
1847
2058
  } & BaseHistoryProps;
1848
2059
 
1849
- declare const Prompt: typeof _default_16 & {
2060
+ declare const Prompt: typeof _default_20 & {
1850
2061
  install: typeof installPrompt;
1851
2062
  };
1852
2063
  export { Prompt }
@@ -1879,7 +2090,7 @@ export declare interface PromptProps {
1879
2090
  badge?: string | VNode;
1880
2091
  }
1881
2092
 
1882
- declare const Prompts: typeof _default_17 & {
2093
+ declare const Prompts: typeof _default_21 & {
1883
2094
  install: typeof installPrompts;
1884
2095
  };
1885
2096
  export { Prompts }
@@ -1999,6 +2210,7 @@ export declare interface SenderProps {
1999
2210
  theme?: ThemeType;
2000
2211
  template?: string;
2001
2212
  hasContent?: boolean;
2213
+ templateInitialValues?: Record<string, string>;
2002
2214
  }
2003
2215
 
2004
2216
  export declare type SingleTabHistoryProps = {
@@ -2035,6 +2247,8 @@ export declare interface SpeechState {
2035
2247
 
2036
2248
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2037
2249
 
2250
+ declare type SuggestionData = (SuggestionItem_2 | SuggestionGroup)[];
2251
+
2038
2252
  /**
2039
2253
  * 组件事件
2040
2254
  */
@@ -2057,6 +2271,13 @@ export declare interface SuggestionEmits {
2057
2271
  (e: 'fill-template', template: string): void;
2058
2272
  }
2059
2273
 
2274
+ declare interface SuggestionGroup {
2275
+ group: string;
2276
+ label: string;
2277
+ icon?: VNode | Component;
2278
+ items: SuggestionItem_2[];
2279
+ }
2280
+
2060
2281
  /**
2061
2282
  * 指令项定义
2062
2283
  */
@@ -2077,6 +2298,97 @@ export declare interface SuggestionItem {
2077
2298
  template?: string;
2078
2299
  }
2079
2300
 
2301
+ declare interface SuggestionItem_2 {
2302
+ id: string;
2303
+ text: string;
2304
+ }
2305
+
2306
+ export declare type SuggestionPillAction = {
2307
+ type: 'popover';
2308
+ props: SuggestionPopoverProps;
2309
+ slots?: Omit<SuggestionPopoverSlots, 'default'>;
2310
+ events?: SuggestionPopoverEvents;
2311
+ } | {
2312
+ type: 'menu';
2313
+ props: DropdownMenuProps;
2314
+ events?: DropdownMenuEvents;
2315
+ };
2316
+
2317
+ export declare type SuggestionPillBaseItem<T> = {
2318
+ id: string;
2319
+ action?: SuggestionPillAction;
2320
+ } & T;
2321
+
2322
+ declare const SuggestionPillButton: typeof _default_26 & {
2323
+ install: typeof installPillButton;
2324
+ };
2325
+ export { SuggestionPillButton }
2326
+ export { SuggestionPillButton as TrSuggestionPillButton }
2327
+
2328
+ export declare interface SuggestionPillButtonProps {
2329
+ item?: SuggestionPillItem;
2330
+ }
2331
+
2332
+ export declare interface SuggestionPillButtonSlots {
2333
+ default?: () => unknown;
2334
+ icon?: () => unknown;
2335
+ }
2336
+
2337
+ export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
2338
+ text: string;
2339
+ icon?: VNode | Component;
2340
+ } | {
2341
+ text?: string;
2342
+ icon: VNode | Component;
2343
+ });
2344
+
2345
+ export declare interface SuggestionPillsEmits {
2346
+ (e: 'item-click', item: SuggestionPillItem): void;
2347
+ }
2348
+
2349
+ export declare interface SuggestionPillsProps {
2350
+ items?: SuggestionPillItem[];
2351
+ }
2352
+
2353
+ export declare interface SuggestionPillsSlots {
2354
+ default?: () => VNode | VNode[];
2355
+ }
2356
+
2357
+ declare interface SuggestionPopoverEvents {
2358
+ itemClick?: (item: SuggestionItem_2) => void;
2359
+ groupClick?: (group: SuggestionGroup) => void;
2360
+ close?: () => void;
2361
+ }
2362
+
2363
+ declare interface SuggestionPopoverProps {
2364
+ data: SuggestionData;
2365
+ title?: string;
2366
+ icon?: VNode | Component;
2367
+ /**
2368
+ * 是否显示弹窗,仅在 trigger 为 'manual' 时有效
2369
+ */
2370
+ show?: boolean;
2371
+ /**
2372
+ * 触发方式。默认值为 'click'
2373
+ */
2374
+ trigger?: 'click' | 'manual';
2375
+ /**
2376
+ * model:selectedGroup
2377
+ */
2378
+ selectedGroup?: string;
2379
+ groupShowMoreTrigger?: 'click' | 'hover';
2380
+ loading?: boolean;
2381
+ popoverWidth?: string | number;
2382
+ popoverHeight?: string | number;
2383
+ topOffset?: string | number;
2384
+ }
2385
+
2386
+ declare interface SuggestionPopoverSlots {
2387
+ default?: () => unknown;
2388
+ loading?: () => unknown;
2389
+ empty?: () => unknown;
2390
+ }
2391
+
2080
2392
  /**
2081
2393
  * 组件属性
2082
2394
  */
@@ -2115,8 +2427,12 @@ export declare interface TemplateEditorEmits {
2115
2427
  (e: 'input', value: string): void;
2116
2428
  /** 内容变更状态 - 通知父组件是否有内容 */
2117
2429
  (e: 'content-status', hasContent: boolean): void;
2118
- /** 字段激活状态变更 */
2119
- (e: 'field-active', isActive: boolean, index: number): void;
2430
+ /** 提交事件 */
2431
+ (e: 'submit', value: string): void;
2432
+ /** 聚焦事件 */
2433
+ (e: 'focus', event: FocusEvent): void;
2434
+ /** 失焦事件 */
2435
+ (e: 'blur', event: FocusEvent): void;
2120
2436
  }
2121
2437
 
2122
2438
  /**
@@ -2127,6 +2443,8 @@ export declare interface TemplateEditorExpose {
2127
2443
  activateFirstField: () => void;
2128
2444
  /** 重置所有字段 */
2129
2445
  resetFields: () => void;
2446
+ /** 聚焦编辑器并将光标置于末尾 */
2447
+ focus: () => void;
2130
2448
  }
2131
2449
 
2132
2450
  /**
@@ -2137,6 +2455,10 @@ export declare interface TemplateEditorProps {
2137
2455
  template: string;
2138
2456
  /** 当前值 */
2139
2457
  value?: string;
2458
+ /** 是否自动聚焦 */
2459
+ autofocus?: boolean;
2460
+ /** 字段初始值,键为占位符文本,值为初始内容 */
2461
+ initialValues?: Record<string, string>;
2140
2462
  }
2141
2463
 
2142
2464
  /**