@apform-ui/core 1.10.24 → 1.10.26

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.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * SessionHistoryDrawer — 会话历史抽屉壳(纯 UI)
3
+ *
4
+ * 默认插槽承载 SessionSidebar 等内容;visible 双向绑定。
5
+ */
6
+ type __VLS_Props = {
7
+ visible: boolean;
8
+ title?: string;
9
+ size?: string | number;
10
+ direction?: 'rtl' | 'ltr' | 'ttb' | 'btt';
11
+ };
12
+ declare var __VLS_10: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_10) => any;
15
+ };
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:visible": (value: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
20
+ }>, {
21
+ title: string;
22
+ size: string | number;
23
+ direction: "rtl" | "ltr" | "ttb" | "btt";
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1 @@
1
+ export { default as SessionHistoryDrawer } from './SessionHistoryDrawer.vue';
@@ -0,0 +1,14 @@
1
+ export interface StarterPromptItem {
2
+ text: string;
3
+ icon?: string;
4
+ agent?: string;
5
+ }
6
+ type __VLS_Props = {
7
+ prompts: StarterPromptItem[];
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ select: (prompt: StarterPromptItem) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((prompt: StarterPromptItem) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as StarterPromptGrid } from './StarterPromptGrid.vue';
2
+ export type { StarterPromptItem } from './StarterPromptGrid.vue';
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ text: string;
3
+ icon?: string;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ icon: string;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as TipBanner } from './TipBanner.vue';
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ items: Array<Record<string, unknown>>;
3
+ /** 条目主键字段 */
4
+ keyField?: string;
5
+ minItemSize?: number;
6
+ /** 传给 DynamicScrollerItem 的 sizeDependencies(按 item 计算) */
7
+ sizeDependencies?: (item: Record<string, unknown>) => unknown[];
8
+ };
9
+ declare var __VLS_14: {
10
+ item: any;
11
+ index: any;
12
+ active: any;
13
+ };
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_14) => any;
16
+ };
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ scroll: (event: Event) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onScroll?: ((event: Event) => any) | undefined;
21
+ }>, {
22
+ keyField: string;
23
+ minItemSize: number;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1 @@
1
+ export { default as VirtualMessageScroller } from './VirtualMessageScroller.vue';
package/dist/index.d.ts CHANGED
@@ -73,6 +73,9 @@ export { NodeArtifactStrip } from './components/NodeArtifactStrip';
73
73
  export { HitlArtifactPanel } from './components/HitlArtifactPanel';
74
74
  export { ExecutionArtifactPanel } from './components/ExecutionArtifactPanel';
75
75
  export { MessageBubble } from './components/Chat/MessageBubble';
76
+ export { TipBanner } from './components/Chat/TipBanner';
77
+ export { StarterPromptGrid } from './components/Chat/StarterPromptGrid';
78
+ export type { StarterPromptItem } from './components/Chat/StarterPromptGrid';
76
79
  export { MessageList } from './components/Chat/MessageList';
77
80
  export { Composer } from './components/Chat/Composer';
78
81
  export { RunStatusBar } from './components/Chat/RunStatusBar';
@@ -80,6 +83,8 @@ export { StreamStatusBanner } from './components/Chat/StreamStatusBanner';
80
83
  export { ApprovalCard } from './components/Chat/ApprovalCard';
81
84
  export { MessageParts, MessageAttachmentList, DocumentSummaryList, AttachmentPreviewModal, } from './components/Chat/message';
82
85
  export { SessionSidebar } from './components/Chat/SessionSidebar';
86
+ export { SessionHistoryDrawer } from './components/Chat/SessionHistoryDrawer';
87
+ export { VirtualMessageScroller } from './components/Chat/VirtualMessageScroller';
83
88
  export { ProcessingDrawer } from './components/Chat/ProcessingDrawer';
84
89
  export { ConversationHeader } from './components/Chat/ConversationHeader';
85
90
  export { PendingAttachmentChip } from './components/Chat/PendingAttachmentChip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.24",
3
+ "version": "1.10.26",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
@@ -58,6 +58,7 @@
58
58
  "element-plus": "2.14.2",
59
59
  "pdfjs-dist": ">=4.0.0",
60
60
  "vue": "^3.5.0",
61
+ "vue-virtual-scroller": ">=2.0.0-beta.0",
61
62
  "xlsx": ">=0.18.0"
62
63
  },
63
64
  "peerDependenciesMeta": {
@@ -76,6 +77,9 @@
76
77
  "pdfjs-dist": {
77
78
  "optional": true
78
79
  },
80
+ "vue-virtual-scroller": {
81
+ "optional": true
82
+ },
79
83
  "xlsx": {
80
84
  "optional": true
81
85
  }
@@ -103,7 +107,8 @@
103
107
  "vite-plugin-dts": "^5.0.3",
104
108
  "vitest": "^3.2.1",
105
109
  "vue": "^3.5.13",
106
- "vue-tsc": "^2.2.8"
110
+ "vue-tsc": "^2.2.8",
111
+ "vue-virtual-scroller": "2.0.0-beta.8"
107
112
  },
108
113
  "scripts": {
109
114
  "dev": "vite",