@apform-ui/core 1.10.5 → 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,12 @@
1
+ import { PendingAttachment } from '../../../types';
2
+ type __VLS_Props = {
3
+ attachment: PendingAttachment;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ remove: (id: string) => any;
7
+ preview: (attachment: PendingAttachment) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onRemove?: ((id: string) => any) | undefined;
10
+ onPreview?: ((attachment: PendingAttachment) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** PendingAttachmentChip 文档 */
3
+ export declare const PendingAttachmentChipDoc: ComponentDoc;
@@ -0,0 +1 @@
1
+ export { default as PendingAttachmentChip } from './PendingAttachmentChip.vue';
@@ -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';
@@ -14,12 +14,14 @@ export { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc';
14
14
  export { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc';
15
15
  export { ComposerDoc } from '../components/Chat/Composer/doc';
16
16
  export { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc';
17
+ export { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc';
17
18
  export { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc';
18
19
  export { MessageListDoc } from '../components/Chat/MessageList/doc';
19
20
  export { ModelPickerDoc } from '../components/Chat/ModelPicker/doc';
20
21
  export { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc';
21
22
  export { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc';
22
23
  export { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc';
24
+ export { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc';
23
25
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
24
26
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
25
27
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -76,11 +76,13 @@ 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';
82
83
  export { ProcessingDrawer } from './components/Chat/ProcessingDrawer';
83
84
  export { ConversationHeader } from './components/Chat/ConversationHeader';
85
+ export { PendingAttachmentChip } from './components/Chat/PendingAttachmentChip';
84
86
  export { AssistantPicker } from './components/Chat/AssistantPicker';
85
87
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
86
88
  export { ModelPicker } from './components/Chat/ModelPicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -14,12 +14,14 @@ export { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc'
14
14
  export { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc'
15
15
  export { ComposerDoc } from '../components/Chat/Composer/doc'
16
16
  export { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc'
17
+ export { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc'
17
18
  export { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc'
18
19
  export { MessageListDoc } from '../components/Chat/MessageList/doc'
19
20
  export { ModelPickerDoc } from '../components/Chat/ModelPicker/doc'
20
21
  export { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc'
21
22
  export { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc'
22
23
  export { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc'
24
+ export { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc'
23
25
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
24
26
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
25
27
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -79,12 +81,14 @@ import { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc'
79
81
  import { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc'
80
82
  import { ComposerDoc } from '../components/Chat/Composer/doc'
81
83
  import { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc'
84
+ import { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc'
82
85
  import { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc'
83
86
  import { MessageListDoc } from '../components/Chat/MessageList/doc'
84
87
  import { ModelPickerDoc } from '../components/Chat/ModelPicker/doc'
85
88
  import { ProcessingDrawerDoc } from '../components/Chat/ProcessingDrawer/doc'
86
89
  import { RunStatusBarDoc } from '../components/Chat/RunStatusBar/doc'
87
90
  import { SessionSidebarDoc } from '../components/Chat/SessionSidebar/doc'
91
+ import { StreamStatusBannerDoc } from '../components/Chat/StreamStatusBanner/doc'
88
92
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
89
93
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
90
94
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -145,12 +149,14 @@ export const componentDocs: Record<string, ComponentDoc> = {
145
149
  AssistantPicker: AssistantPickerDoc,
146
150
  Composer: ComposerDoc,
147
151
  ConversationHeader: ConversationHeaderDoc,
152
+ PendingAttachmentChip: PendingAttachmentChipDoc,
148
153
  MessageBubble: MessageBubbleDoc,
149
154
  MessageList: MessageListDoc,
150
155
  ModelPicker: ModelPickerDoc,
151
156
  ProcessingDrawer: ProcessingDrawerDoc,
152
157
  RunStatusBar: RunStatusBarDoc,
153
158
  SessionSidebar: SessionSidebarDoc,
159
+ StreamStatusBanner: StreamStatusBannerDoc,
154
160
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
155
161
  DocumentSummaryList: DocumentSummaryListDoc,
156
162
  MessageAttachmentList: MessageAttachmentListDoc,