yc-agent-ui 1.2.2 → 1.2.4

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 (109) hide show
  1. package/es/components/dialog/index.d.ts +6 -6
  2. package/es/components/dialog/src/index.vue.d.ts +2 -2
  3. package/es/components/dialog-form/index.d.ts +6 -6
  4. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  5. package/es/components/display-item/index.d.ts +21 -21
  6. package/es/components/display-item/src/index.vue.d.ts +19 -19
  7. package/es/components/drawer-form/index.d.ts +18 -18
  8. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  9. package/es/components/form/index.d.ts +12 -12
  10. package/es/components/form/src/form-content.vue.d.ts +12 -12
  11. package/es/components/form/src/index.vue.d.ts +12 -12
  12. package/es/components/form-item/index.d.ts +12 -12
  13. package/es/components/form-item/src/index.vue.d.ts +10 -10
  14. package/es/components/page/index.d.ts +258 -258
  15. package/es/components/page/src/index.vue.d.ts +90 -90
  16. package/es/components/render/index.d.ts +1 -1
  17. package/es/components/render/src/index.vue.d.ts +1 -1
  18. package/es/components/search/index.d.ts +78 -78
  19. package/es/components/search/src/index.vue.d.ts +30 -30
  20. package/es/components/table/src/table-column.vue.d.ts +46 -46
  21. package/es/components/yc-ai-chat/index.d.ts +2 -1
  22. package/es/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
  23. package/es/components/yc-ai-chat/src/question-validation.d.ts +5 -0
  24. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +19 -1
  25. package/es/components/yc-ai-chat/src/studio.vue.d.ts +6 -0
  26. package/es/components/yc-ai-chat/src/type.d.ts +53 -0
  27. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  28. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  29. package/es/hooks/usePlusFormReset.d.ts +144 -144
  30. package/es/index.css +10 -10
  31. package/es/index.mjs +1 -0
  32. package/es/packages/components/index.mjs +1 -0
  33. package/es/packages/components/yc-ai-chat/index.mjs +1 -0
  34. package/es/packages/components/yc-ai-chat/src/question-card.vue.mjs +5 -0
  35. package/es/packages/components/yc-ai-chat/src/question-card2.vue.mjs +459 -0
  36. package/es/packages/components/yc-ai-chat/src/question-validation.mjs +77 -0
  37. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +709 -129
  38. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +194 -42
  39. package/es/version.d.ts +1 -1
  40. package/es/version.mjs +1 -1
  41. package/index.css +1 -1
  42. package/index.js +2932 -1667
  43. package/index.min.js +26 -26
  44. package/index.min.mjs +25 -25
  45. package/index.mjs +2915 -1651
  46. package/lib/components/dialog/index.d.ts +6 -6
  47. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  48. package/lib/components/dialog-form/index.d.ts +6 -6
  49. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  50. package/lib/components/display-item/index.d.ts +21 -21
  51. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  52. package/lib/components/drawer-form/index.d.ts +18 -18
  53. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  54. package/lib/components/form/index.d.ts +12 -12
  55. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  56. package/lib/components/form/src/index.vue.d.ts +12 -12
  57. package/lib/components/form-item/index.d.ts +12 -12
  58. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  59. package/lib/components/page/index.d.ts +258 -258
  60. package/lib/components/page/src/index.vue.d.ts +90 -90
  61. package/lib/components/render/index.d.ts +1 -1
  62. package/lib/components/render/src/index.vue.d.ts +1 -1
  63. package/lib/components/search/index.d.ts +78 -78
  64. package/lib/components/search/src/index.vue.d.ts +30 -30
  65. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  66. package/lib/components/yc-ai-chat/index.d.ts +2 -1
  67. package/lib/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
  68. package/lib/components/yc-ai-chat/src/question-validation.d.ts +5 -0
  69. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +19 -1
  70. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +6 -0
  71. package/lib/components/yc-ai-chat/src/type.d.ts +53 -0
  72. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  73. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  74. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  75. package/lib/index.css +9 -9
  76. package/lib/index.js +2 -0
  77. package/lib/packages/components/index.js +2 -0
  78. package/lib/packages/components/yc-ai-chat/index.js +2 -0
  79. package/lib/packages/components/yc-ai-chat/src/question-card.vue.js +9 -0
  80. package/lib/packages/components/yc-ai-chat/src/question-card2.vue.js +463 -0
  81. package/lib/packages/components/yc-ai-chat/src/question-validation.js +81 -0
  82. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +708 -128
  83. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +193 -41
  84. package/lib/version.d.ts +1 -1
  85. package/lib/version.js +1 -1
  86. package/locale/en.js +1 -1
  87. package/locale/en.min.js +1 -1
  88. package/locale/en.min.mjs +1 -1
  89. package/locale/en.mjs +1 -1
  90. package/locale/ja.js +1 -1
  91. package/locale/ja.min.js +1 -1
  92. package/locale/ja.min.mjs +1 -1
  93. package/locale/ja.mjs +1 -1
  94. package/locale/ko.js +1 -1
  95. package/locale/ko.min.js +1 -1
  96. package/locale/ko.min.mjs +1 -1
  97. package/locale/ko.mjs +1 -1
  98. package/locale/zh-cn.js +1 -1
  99. package/locale/zh-cn.min.js +1 -1
  100. package/locale/zh-cn.min.mjs +1 -1
  101. package/locale/zh-cn.mjs +1 -1
  102. package/locale/zh-tw.js +1 -1
  103. package/locale/zh-tw.min.js +1 -1
  104. package/locale/zh-tw.min.mjs +1 -1
  105. package/locale/zh-tw.mjs +1 -1
  106. package/package.json +1 -1
  107. package/theme-chalk/index.css +1 -1
  108. package/theme-chalk/plus-yc-ai-chat.css +1 -1
  109. package/theme-chalk/src/yc-ai-chat.scss +914 -103
@@ -162,8 +162,8 @@ declare const __VLS_component: DefineComponent<unknown, {
162
162
  column: PlusColumn;
163
163
  row: RecordType;
164
164
  index: number;
165
- rest: RecordType;
166
165
  formProps: PlusFormProps;
166
+ rest: RecordType;
167
167
  editable: boolean | "click" | "dblclick";
168
168
  }> & Omit<{
169
169
  readonly onChange?: ((data: {
@@ -171,7 +171,7 @@ declare const __VLS_component: DefineComponent<unknown, {
171
171
  prop: string;
172
172
  row: RecordType;
173
173
  }) => any) | undefined;
174
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "rest" | "formProps" | "editable">;
174
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "formProps" | "rest" | "editable">;
175
175
  $attrs: Attrs;
176
176
  $refs: {
177
177
  [x: string]: unknown;
@@ -215,8 +215,8 @@ declare const __VLS_component: DefineComponent<unknown, {
215
215
  column: PlusColumn;
216
216
  row: RecordType;
217
217
  index: number;
218
- rest: RecordType;
219
218
  formProps: PlusFormProps;
219
+ rest: RecordType;
220
220
  editable: boolean | "click" | "dblclick";
221
221
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
222
222
  beforeCreate?: (() => void) | (() => void)[];
@@ -242,8 +242,8 @@ declare const __VLS_component: DefineComponent<unknown, {
242
242
  column: PlusColumn;
243
243
  row: RecordType;
244
244
  index: number;
245
- rest: RecordType;
246
245
  formProps: PlusFormProps;
246
+ rest: RecordType;
247
247
  editable: boolean | "click" | "dblclick";
248
248
  }> & Omit<Readonly<unknown> & Readonly<{
249
249
  onChange?: ((data: {
@@ -251,7 +251,7 @@ declare const __VLS_component: DefineComponent<unknown, {
251
251
  prop: string;
252
252
  row: RecordType;
253
253
  }) => any) | undefined;
254
- }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "rest" | "formProps" | "editable")> & {
254
+ }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "formProps" | "rest" | "editable")> & {
255
255
  startCellEdit: () => void;
256
256
  stopCellEdit: () => void;
257
257
  getDisplayItemInstance: () => {
@@ -268,12 +268,12 @@ declare const __VLS_component: DefineComponent<unknown, {
268
268
  prop: PlusColumn["prop"];
269
269
  }> & {
270
270
  readonly label: string | ComputedRef<string>;
271
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
271
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
272
272
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
273
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
273
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
274
274
  style?: CSSProperties;
275
275
  class?: any;
276
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
276
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
277
277
  style?: CSSProperties;
278
278
  class?: any;
279
279
  } & RecordType>>;
@@ -342,12 +342,12 @@ declare const __VLS_component: DefineComponent<unknown, {
342
342
  fieldInstance?: any;
343
343
  valueIsReady?: Ref<boolean>;
344
344
  prop: PlusColumn["prop"];
345
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
345
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
346
346
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
347
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
347
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
348
348
  style?: CSSProperties;
349
349
  class?: any;
350
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
350
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
351
351
  style?: CSSProperties;
352
352
  class?: any;
353
353
  } & RecordType>>;
@@ -381,12 +381,12 @@ declare const __VLS_component: DefineComponent<unknown, {
381
381
  prop: PlusColumn["prop"];
382
382
  }> & {
383
383
  readonly label: string | ComputedRef<string>;
384
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
384
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
385
385
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
386
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
386
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
387
387
  style?: CSSProperties;
388
388
  class?: any;
389
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
389
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
390
390
  style?: CSSProperties;
391
391
  class?: any;
392
392
  } & RecordType>>;
@@ -455,12 +455,12 @@ declare const __VLS_component: DefineComponent<unknown, {
455
455
  fieldInstance?: any;
456
456
  valueIsReady?: Ref<boolean>;
457
457
  prop: PlusColumn["prop"];
458
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
458
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
459
459
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
460
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
460
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
461
461
  style?: CSSProperties;
462
462
  class?: any;
463
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
463
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
464
464
  style?: CSSProperties;
465
465
  class?: any;
466
466
  } & RecordType>>;
@@ -494,12 +494,12 @@ declare const __VLS_component: DefineComponent<unknown, {
494
494
  prop: PlusColumn["prop"];
495
495
  }> & {
496
496
  readonly label: string | ComputedRef<string>;
497
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
497
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
498
498
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
499
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
499
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
500
500
  style?: CSSProperties;
501
501
  class?: any;
502
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
502
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
503
503
  style?: CSSProperties;
504
504
  class?: any;
505
505
  } & RecordType>>;
@@ -568,12 +568,12 @@ declare const __VLS_component: DefineComponent<unknown, {
568
568
  fieldInstance?: any;
569
569
  valueIsReady?: Ref<boolean>;
570
570
  prop: PlusColumn["prop"];
571
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
571
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
572
572
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
573
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
573
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
574
574
  style?: CSSProperties;
575
575
  class?: any;
576
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
576
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
577
577
  style?: CSSProperties;
578
578
  class?: any;
579
579
  } & RecordType>>;
@@ -622,8 +622,8 @@ declare const __VLS_component: DefineComponent<unknown, {
622
622
  column: PlusColumn;
623
623
  row: RecordType;
624
624
  index: number;
625
- rest: RecordType;
626
625
  formProps: PlusFormProps;
626
+ rest: RecordType;
627
627
  editable: boolean | "click" | "dblclick";
628
628
  }> & Omit<{
629
629
  readonly onChange?: ((data: {
@@ -631,7 +631,7 @@ declare const __VLS_component: DefineComponent<unknown, {
631
631
  prop: string;
632
632
  row: RecordType;
633
633
  }) => any) | undefined;
634
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "rest" | "formProps" | "editable">;
634
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "formProps" | "rest" | "editable">;
635
635
  $attrs: Attrs;
636
636
  $refs: {
637
637
  [x: string]: unknown;
@@ -675,8 +675,8 @@ declare const __VLS_component: DefineComponent<unknown, {
675
675
  column: PlusColumn;
676
676
  row: RecordType;
677
677
  index: number;
678
- rest: RecordType;
679
678
  formProps: PlusFormProps;
679
+ rest: RecordType;
680
680
  editable: boolean | "click" | "dblclick";
681
681
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
682
682
  beforeCreate?: (() => void) | (() => void)[];
@@ -702,8 +702,8 @@ declare const __VLS_component: DefineComponent<unknown, {
702
702
  column: PlusColumn;
703
703
  row: RecordType;
704
704
  index: number;
705
- rest: RecordType;
706
705
  formProps: PlusFormProps;
706
+ rest: RecordType;
707
707
  editable: boolean | "click" | "dblclick";
708
708
  }> & Omit<Readonly<unknown> & Readonly<{
709
709
  onChange?: ((data: {
@@ -711,7 +711,7 @@ declare const __VLS_component: DefineComponent<unknown, {
711
711
  prop: string;
712
712
  row: RecordType;
713
713
  }) => any) | undefined;
714
- }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "rest" | "formProps" | "editable")> & {
714
+ }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "formProps" | "rest" | "editable")> & {
715
715
  startCellEdit: () => void;
716
716
  stopCellEdit: () => void;
717
717
  getDisplayItemInstance: () => {
@@ -728,12 +728,12 @@ declare const __VLS_component: DefineComponent<unknown, {
728
728
  prop: PlusColumn["prop"];
729
729
  }> & {
730
730
  readonly label: string | ComputedRef<string>;
731
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
731
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
732
732
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
733
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
733
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
734
734
  style?: CSSProperties;
735
735
  class?: any;
736
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
736
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
737
737
  style?: CSSProperties;
738
738
  class?: any;
739
739
  } & RecordType>>;
@@ -802,12 +802,12 @@ declare const __VLS_component: DefineComponent<unknown, {
802
802
  fieldInstance?: any;
803
803
  valueIsReady?: Ref<boolean>;
804
804
  prop: PlusColumn["prop"];
805
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
805
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
806
806
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
807
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
807
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
808
808
  style?: CSSProperties;
809
809
  class?: any;
810
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
810
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
811
811
  style?: CSSProperties;
812
812
  class?: any;
813
813
  } & RecordType>>;
@@ -841,12 +841,12 @@ declare const __VLS_component: DefineComponent<unknown, {
841
841
  prop: PlusColumn["prop"];
842
842
  }> & {
843
843
  readonly label: string | ComputedRef<string>;
844
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
844
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
845
845
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
846
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
846
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
847
847
  style?: CSSProperties;
848
848
  class?: any;
849
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
849
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
850
850
  style?: CSSProperties;
851
851
  class?: any;
852
852
  } & RecordType>>;
@@ -915,12 +915,12 @@ declare const __VLS_component: DefineComponent<unknown, {
915
915
  fieldInstance?: any;
916
916
  valueIsReady?: Ref<boolean>;
917
917
  prop: PlusColumn["prop"];
918
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
918
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
919
919
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
920
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
920
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
921
921
  style?: CSSProperties;
922
922
  class?: any;
923
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
923
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
924
924
  style?: CSSProperties;
925
925
  class?: any;
926
926
  } & RecordType>>;
@@ -954,12 +954,12 @@ declare const __VLS_component: DefineComponent<unknown, {
954
954
  prop: PlusColumn["prop"];
955
955
  }> & {
956
956
  readonly label: string | ComputedRef<string>;
957
- readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
957
+ readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
958
958
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
959
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
959
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
960
960
  style?: CSSProperties;
961
961
  class?: any;
962
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
962
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
963
963
  style?: CSSProperties;
964
964
  class?: any;
965
965
  } & RecordType>>;
@@ -1028,12 +1028,12 @@ declare const __VLS_component: DefineComponent<unknown, {
1028
1028
  fieldInstance?: any;
1029
1029
  valueIsReady?: Ref<boolean>;
1030
1030
  prop: PlusColumn["prop"];
1031
- modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1031
+ modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | boolean[] | RecordType | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1032
1032
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
1033
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
1033
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
1034
1034
  style?: CSSProperties;
1035
1035
  class?: any;
1036
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
1036
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
1037
1037
  style?: CSSProperties;
1038
1038
  class?: any;
1039
1039
  } & RecordType>>;
@@ -6,10 +6,11 @@ import { default as YcChatThinking } from './src/thinking.vue';
6
6
  import { default as YcChatFileCard } from './src/file-card.vue';
7
7
  import { default as YcChatSender } from './src/sender.vue';
8
8
  import { default as YcChatSelect } from './src/select.vue';
9
+ import { default as YcChatQuestionCard } from './src/question-card.vue';
9
10
  import { default as YcMobileDeviceFrame } from './src/mobile-frame.vue';
10
11
 
11
12
  export * from './src/type';
12
13
  export * from './src/presets';
13
14
  export { Attachments, Bubble, BubbleList, Conversations, FilesCard, Prompts, Thinking, ThoughtChain, Welcome, XSender } from 'vue-element-plus-x';
14
- export { YcChatStudio, YcChatSidebar, YcChatWelcome, YcChatBubble, YcChatThinking, YcChatFileCard, YcChatSender, YcChatSelect, YcMobileDeviceFrame };
15
+ export { YcChatStudio, YcChatSidebar, YcChatWelcome, YcChatBubble, YcChatThinking, YcChatFileCard, YcChatSender, YcChatSelect, YcChatQuestionCard, YcMobileDeviceFrame };
15
16
  export default YcChatStudio;
@@ -0,0 +1,17 @@
1
+ import { YcChatQuestionAnswer } from './type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+
4
+ declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ answer: (answers: YcChatQuestionAnswer[]) => void;
6
+ cancel: () => void;
7
+ }, string, PublicProps, Readonly<unknown> & Readonly<{
8
+ onCancel?: (() => any) | undefined;
9
+ onAnswer?: ((answers: YcChatQuestionAnswer[]) => any) | undefined;
10
+ }>, {
11
+ title: string;
12
+ compact: boolean;
13
+ submitting: boolean;
14
+ answerEnabled: boolean;
15
+ unavailableReason: string;
16
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { YcChatQuestionAnswer, YcChatQuestionRequest } from './type';
2
+
3
+ export declare function validChatOtherText(value: string): boolean;
4
+ export declare function validChatQuestionRequest(request: YcChatQuestionRequest): boolean;
5
+ export declare function validChatAnswersForRequest(request: YcChatQuestionRequest, answers: YcChatQuestionAnswer[]): boolean;
@@ -1,4 +1,4 @@
1
- import { YcChatSessionItem } from './type';
1
+ import { YcChatSessionAction, YcChatSessionItem } from './type';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
 
4
4
  declare function __VLS_template(): {
@@ -7,12 +7,26 @@ declare function __VLS_template(): {
7
7
  declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
8
  select: (id: string) => void;
9
9
  create: () => void;
10
+ share: (id: string) => void;
11
+ archive: (id: string) => void;
12
+ unarchive: (id: string) => void;
10
13
  delete: (id: string) => void;
14
+ action: (payload: {
15
+ action: YcChatSessionAction;
16
+ id: string;
17
+ }) => void;
11
18
  "load-more": () => void;
12
19
  }, string, PublicProps, Readonly<unknown> & Readonly<{
13
20
  onSelect?: ((id: string) => any) | undefined;
21
+ onAction?: ((payload: {
22
+ action: YcChatSessionAction;
23
+ id: string;
24
+ }) => any) | undefined;
14
25
  onDelete?: ((id: string) => any) | undefined;
15
26
  "onLoad-more"?: (() => any) | undefined;
27
+ onArchive?: ((id: string) => any) | undefined;
28
+ onShare?: ((id: string) => any) | undefined;
29
+ onUnarchive?: ((id: string) => any) | undefined;
16
30
  onCreate?: (() => any) | undefined;
17
31
  }>, {
18
32
  title: string;
@@ -27,6 +41,10 @@ declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, Componen
27
41
  disconnectedText: string;
28
42
  noResultText: string;
29
43
  untitledText: string;
44
+ archivedGroupTitle: string;
45
+ showShare: boolean;
46
+ showArchive: boolean;
47
+ showDelete: boolean;
30
48
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
31
49
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
32
50
  export default _default;
@@ -19,6 +19,7 @@ declare const __VLS_component: DefineComponent<unknown, {
19
19
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
20
  "update:viewport": (value: YcChatViewportMode) => void;
21
21
  "update:deviceId": (value: string) => void;
22
+ "update:sidebarWidth": (value: number) => void;
22
23
  refresh: () => void;
23
24
  create: () => void;
24
25
  }, string, PublicProps, Readonly<unknown> & Readonly<{
@@ -26,6 +27,7 @@ declare const __VLS_component: DefineComponent<unknown, {
26
27
  onCreate?: (() => any) | undefined;
27
28
  "onUpdate:viewport"?: ((value: YcChatViewportMode) => any) | undefined;
28
29
  "onUpdate:deviceId"?: ((value: string) => any) | undefined;
30
+ "onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
29
31
  }>, {
30
32
  status: YcChatConnectionStatus;
31
33
  caption: string;
@@ -40,6 +42,10 @@ declare const __VLS_component: DefineComponent<unknown, {
40
42
  refreshing: boolean;
41
43
  showViewportSwitch: boolean;
42
44
  deviceSimulator: boolean;
45
+ sidebarWidth: number;
46
+ sidebarMinWidth: number;
47
+ sidebarMaxWidth: number;
48
+ sidebarResizable: boolean;
43
49
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
44
50
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
45
51
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export type YcChatViewportMode = 'web' | 'mobile';
2
2
  export type YcChatConnectionStatus = 'idle' | 'connecting' | 'connected' | 'error';
3
+ export type YcChatSessionAction = 'share' | 'archive' | 'unarchive' | 'delete';
3
4
  export interface YcMobileDevicePreset {
4
5
  id: string;
5
6
  label: string;
@@ -17,6 +18,7 @@ export interface YcChatSessionItem {
17
18
  title?: string;
18
19
  updatedAt?: string;
19
20
  disabled?: boolean;
21
+ archived?: boolean;
20
22
  }
21
23
  export interface YcChatPromptItem {
22
24
  id: string;
@@ -32,3 +34,54 @@ export interface YcChatMetricItem {
32
34
  key: string;
33
35
  text: string;
34
36
  }
37
+ export interface YcChatClientInteractionEvent {
38
+ type: string;
39
+ version: number;
40
+ payload: Record<string, unknown>;
41
+ }
42
+ export interface YcChatQuestionOption {
43
+ id: string;
44
+ label: string;
45
+ description?: string;
46
+ event?: YcChatClientInteractionEvent;
47
+ }
48
+ export interface YcChatInteractionQuestion {
49
+ id: string;
50
+ title: string;
51
+ selection_mode: 'single' | 'multiple';
52
+ options: YcChatQuestionOption[];
53
+ other: {
54
+ enabled: true;
55
+ label: '其他';
56
+ };
57
+ }
58
+ export interface YcChatQuestionRequest {
59
+ schema: 'interaction.question.v1';
60
+ request_id: string;
61
+ tool_call_id: string;
62
+ questions: YcChatInteractionQuestion[];
63
+ }
64
+ export interface YcChatQuestionAnswer {
65
+ question_id: string;
66
+ selected_option_ids: string[];
67
+ other_text: string | null;
68
+ }
69
+ export type YcChatInteractionState = 'preparing' | 'pending' | 'answered' | 'invalidated' | 'expired' | 'cancelled' | 'superseded';
70
+ export interface YcChatClientEventReceipt extends YcChatClientInteractionEvent {
71
+ eventId: string;
72
+ }
73
+ export interface YcChatAnswerReceipt {
74
+ requestId: string;
75
+ answerId: string;
76
+ state: 'answered';
77
+ continuationRunId: string;
78
+ clientEvent: YcChatClientEventReceipt | null;
79
+ }
80
+ export interface YcChatInteractionSnapshot {
81
+ request: YcChatQuestionRequest;
82
+ state: YcChatInteractionState;
83
+ version: number;
84
+ expiresAt: string;
85
+ receipt: YcChatAnswerReceipt | null;
86
+ answers: YcChatQuestionAnswer[];
87
+ }