@apform-ui/core 1.10.6 → 1.10.7

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.
@@ -7,7 +7,23 @@ type __VLS_Props = {
7
7
  /** 品牌标识组件(可选) */
8
8
  brandMark?: any;
9
9
  };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ /**
11
+ * 滚动到底部(默认列表模式;#body 时可被业务忽略)
12
+ */
13
+ declare function scrollToBottom(): Promise<void>;
14
+ declare var __VLS_1: {}, __VLS_3: {
15
+ messages: Message[];
16
+ scrollToBottom: typeof scrollToBottom;
17
+ };
18
+ type __VLS_Slots = {} & {
19
+ empty?: (props: typeof __VLS_1) => any;
20
+ } & {
21
+ body?: (props: typeof __VLS_3) => any;
22
+ };
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
+ scrollToBottom: typeof scrollToBottom;
25
+ container: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
27
  cancel: () => any;
12
28
  retry: () => any;
13
29
  preview: (attachment: any) => any;
@@ -20,4 +36,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
20
36
  onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
21
37
  "onOpen-process"?: ((message: Message) => any) | undefined;
22
38
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
40
  export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * StreamStatusBanner — 流式连接状态条(断线重试等)
3
+ */
4
+ type __VLS_Props = {
5
+ /** 连接 / 流状态 */
6
+ status: 'idle' | 'connecting' | 'reconnecting' | 'disconnected' | 'streaming';
7
+ /** 主文案 */
8
+ message?: string;
9
+ /** 重试按钮文案 */
10
+ retryLabel?: string;
11
+ /** 是否显示重试 */
12
+ showRetry?: boolean;
13
+ };
14
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ retry: () => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onRetry?: (() => any) | undefined;
18
+ }>, {
19
+ retryLabel: string;
20
+ showRetry: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** StreamStatusBanner 文档 */
3
+ export declare const StreamStatusBannerDoc: ComponentDoc;
@@ -0,0 +1 @@
1
+ export { default as StreamStatusBanner } from './StreamStatusBanner.vue';
@@ -21,6 +21,7 @@ export { ModelPickerDoc } from '../components/Chat/ModelPicker/doc';
21
21
  export { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc';
22
22
  export { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc';
23
23
  export { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc';
24
+ export { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc';
24
25
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
25
26
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
26
27
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -76,6 +76,7 @@ export { MessageBubble } from './components/Chat/MessageBubble';
76
76
  export { MessageList } from './components/Chat/MessageList';
77
77
  export { Composer } from './components/Chat/Composer';
78
78
  export { RunStatusBar } from './components/Chat/RunStatusBar';
79
+ export { StreamStatusBanner } from './components/Chat/StreamStatusBanner';
79
80
  export { ApprovalCard } from './components/Chat/ApprovalCard';
80
81
  export { MessageParts, MessageAttachmentList, DocumentSummaryList, AttachmentPreviewModal, } from './components/Chat/message';
81
82
  export { SessionSidebar } from './components/Chat/SessionSidebar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -21,6 +21,7 @@ export { ModelPickerDoc } from '../components/Chat/ModelPicker/doc'
21
21
  export { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc'
22
22
  export { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc'
23
23
  export { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc'
24
+ export { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc'
24
25
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
25
26
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
26
27
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -87,6 +88,7 @@ import { ModelPickerDoc } from '../components/Chat/ModelPicker/doc'
87
88
  import { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc'
88
89
  import { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc'
89
90
  import { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc'
91
+ import { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc'
90
92
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
91
93
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
92
94
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -154,6 +156,7 @@ export const componentDocs: Record<string, ComponentDoc> = {
154
156
  ProcessingDrawer: ProcessingDrawerDoc,
155
157
  RunStatusBar: RunStatusBarDoc,
156
158
  SessionSidebar: SessionSidebarDoc,
159
+ StreamStatusBanner: StreamStatusBannerDoc,
157
160
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
158
161
  DocumentSummaryList: DocumentSummaryListDoc,
159
162
  MessageAttachmentList: MessageAttachmentListDoc,