@apform-ui/core 1.11.1 → 1.12.0

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,3 @@
1
+ import { ComponentDoc } from '../../docs/types';
2
+ /** AppUserPanel 文档 */
3
+ export declare const AppUserPanelDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** RagContextPanel 文档 */
3
+ export declare const RagContextPanelDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** StarterPromptGrid 文档 */
3
+ export declare const StarterPromptGridDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** TaskChainBar 文档 */
3
+ export declare const TaskChainBarDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** TipBanner 文档 */
3
+ export declare const TipBannerDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../docs/types';
2
+ /** SliderCaptcha 文档 */
3
+ export declare const SliderCaptchaDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useChatScroll 文档 */
3
+ export declare const useChatScrollDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useClientPagination 文档 */
3
+ export declare const useClientPaginationDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useClipboard 文档 */
3
+ export declare const useClipboardDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useConfirm 文档 */
3
+ export declare const useConfirmDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useDataLoading 文档 */
3
+ export declare const useDataLoadingDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useDebounceFn 文档 */
3
+ export declare const useDebounceFnDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useMessage 文档 */
3
+ export declare const useMessageDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useRealtime 文档 */
3
+ export declare const useRealtimeDoc: ComponentDoc;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../docs/types';
2
+ /** useToast 文档 */
3
+ export declare const useToastDoc: ComponentDoc;
@@ -47,6 +47,21 @@ export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/d
47
47
  export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
48
48
  export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc';
49
49
  export { BpmnFlowPreviewCanvasDoc } from '../components/Chat/BpmnFlowPreviewCanvas/doc';
50
+ export { TipBannerDoc } from '../components/Chat/TipBanner/doc';
51
+ export { StarterPromptGridDoc } from '../components/Chat/StarterPromptGrid/doc';
52
+ export { TaskChainBarDoc } from '../components/Chat/TaskChainBar/doc';
53
+ export { RagContextPanelDoc } from '../components/Chat/RagContextPanel/doc';
54
+ export { AppUserPanelDoc } from '../components/AppUserPanel/doc';
55
+ export { SliderCaptchaDoc } from '../components/SliderCaptcha/doc';
56
+ export { useDebounceFnDoc } from '../composables/useDebounceFn.doc';
57
+ export { useToastDoc } from '../composables/useToast.doc';
58
+ export { useConfirmDoc } from '../composables/useConfirm.doc';
59
+ export { useMessageDoc } from '../composables/useMessage.doc';
60
+ export { useClientPaginationDoc } from '../composables/useClientPagination.doc';
61
+ export { useDataLoadingDoc } from '../composables/useDataLoading.doc';
62
+ export { useChatScrollDoc } from '../composables/useChatScroll.doc';
63
+ export { useClipboardDoc } from '../composables/useClipboard.doc';
64
+ export { useRealtimeDoc } from '../composables/useRealtime.doc';
50
65
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
51
66
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
52
67
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * 组件文档元数据类型 — playground 文档站消费
3
3
  */
4
- /** Props 文档行 */
4
+ /** Props / 参数文档行 */
5
5
  export interface PropDoc {
6
- /** 属性名 */
6
+ /** 属性名或参数名 */
7
7
  name: string;
8
8
  /** 类型说明 */
9
9
  type: string;
@@ -38,10 +38,19 @@ export interface ComponentDoc {
38
38
  titleZh?: string;
39
39
  /** 一句话简述 */
40
40
  description: string;
41
- /** Props / Attributes */
41
+ /**
42
+ * 文档类型:组件(Attributes/Events/Slots)或 composable(Parameters/Returns)
43
+ * @default 'component'
44
+ */
45
+ kind?: 'component' | 'composable';
46
+ /** Props / Attributes(组件) */
42
47
  props?: PropDoc[];
43
- /** Emits / Events */
48
+ /** Emits / Events(组件) */
44
49
  emits?: EmitDoc[];
45
- /** Slots */
50
+ /** Slots(组件) */
46
51
  slots?: SlotDoc[];
52
+ /** 函数参数(composable) */
53
+ params?: PropDoc[];
54
+ /** 返回值字段 / 方法(composable) */
55
+ returns?: PropDoc[];
47
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -47,6 +47,21 @@ export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/d
47
47
  export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
48
48
  export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
49
49
  export { BpmnFlowPreviewCanvasDoc } from '../components/Chat/BpmnFlowPreviewCanvas/doc'
50
+ export { TipBannerDoc } from '../components/Chat/TipBanner/doc'
51
+ export { StarterPromptGridDoc } from '../components/Chat/StarterPromptGrid/doc'
52
+ export { TaskChainBarDoc } from '../components/Chat/TaskChainBar/doc'
53
+ export { RagContextPanelDoc } from '../components/Chat/RagContextPanel/doc'
54
+ export { AppUserPanelDoc } from '../components/AppUserPanel/doc'
55
+ export { SliderCaptchaDoc } from '../components/SliderCaptcha/doc'
56
+ export { useDebounceFnDoc } from '../composables/useDebounceFn.doc'
57
+ export { useToastDoc } from '../composables/useToast.doc'
58
+ export { useConfirmDoc } from '../composables/useConfirm.doc'
59
+ export { useMessageDoc } from '../composables/useMessage.doc'
60
+ export { useClientPaginationDoc } from '../composables/useClientPagination.doc'
61
+ export { useDataLoadingDoc } from '../composables/useDataLoading.doc'
62
+ export { useChatScrollDoc } from '../composables/useChatScroll.doc'
63
+ export { useClipboardDoc } from '../composables/useClipboard.doc'
64
+ export { useRealtimeDoc } from '../composables/useRealtime.doc'
50
65
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
51
66
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
52
67
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -143,6 +158,21 @@ import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/d
143
158
  import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
144
159
  import { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
145
160
  import { BpmnFlowPreviewCanvasDoc } from '../components/Chat/BpmnFlowPreviewCanvas/doc'
161
+ import { TipBannerDoc } from '../components/Chat/TipBanner/doc'
162
+ import { StarterPromptGridDoc } from '../components/Chat/StarterPromptGrid/doc'
163
+ import { TaskChainBarDoc } from '../components/Chat/TaskChainBar/doc'
164
+ import { RagContextPanelDoc } from '../components/Chat/RagContextPanel/doc'
165
+ import { AppUserPanelDoc } from '../components/AppUserPanel/doc'
166
+ import { SliderCaptchaDoc } from '../components/SliderCaptcha/doc'
167
+ import { useDebounceFnDoc } from '../composables/useDebounceFn.doc'
168
+ import { useToastDoc } from '../composables/useToast.doc'
169
+ import { useConfirmDoc } from '../composables/useConfirm.doc'
170
+ import { useMessageDoc } from '../composables/useMessage.doc'
171
+ import { useClientPaginationDoc } from '../composables/useClientPagination.doc'
172
+ import { useDataLoadingDoc } from '../composables/useDataLoading.doc'
173
+ import { useChatScrollDoc } from '../composables/useChatScroll.doc'
174
+ import { useClipboardDoc } from '../composables/useClipboard.doc'
175
+ import { useRealtimeDoc } from '../composables/useRealtime.doc'
146
176
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
147
177
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
148
178
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -240,6 +270,21 @@ export const componentDocs: Record<string, ComponentDoc> = {
240
270
  SuggestionCard: SuggestionCardDoc,
241
271
  ConversationSearchBar: ConversationSearchBarDoc,
242
272
  BpmnFlowPreviewCanvas: BpmnFlowPreviewCanvasDoc,
273
+ TipBanner: TipBannerDoc,
274
+ StarterPromptGrid: StarterPromptGridDoc,
275
+ TaskChainBar: TaskChainBarDoc,
276
+ RagContextPanel: RagContextPanelDoc,
277
+ AppUserPanel: AppUserPanelDoc,
278
+ SliderCaptcha: SliderCaptchaDoc,
279
+ useDebounceFn: useDebounceFnDoc,
280
+ useToast: useToastDoc,
281
+ useConfirm: useConfirmDoc,
282
+ useMessage: useMessageDoc,
283
+ useClientPagination: useClientPaginationDoc,
284
+ useDataLoading: useDataLoadingDoc,
285
+ useChatScroll: useChatScrollDoc,
286
+ useClipboard: useClipboardDoc,
287
+ useRealtime: useRealtimeDoc,
243
288
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
244
289
  DocumentSummaryList: DocumentSummaryListDoc,
245
290
  MessageAttachmentList: MessageAttachmentListDoc,
package/src/docs/types.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * 组件文档元数据类型 — playground 文档站消费
3
3
  */
4
4
 
5
- /** Props 文档行 */
5
+ /** Props / 参数文档行 */
6
6
  export interface PropDoc {
7
- /** 属性名 */
7
+ /** 属性名或参数名 */
8
8
  name: string
9
9
  /** 类型说明 */
10
10
  type: string
@@ -42,10 +42,19 @@ export interface ComponentDoc {
42
42
  titleZh?: string
43
43
  /** 一句话简述 */
44
44
  description: string
45
- /** Props / Attributes */
45
+ /**
46
+ * 文档类型:组件(Attributes/Events/Slots)或 composable(Parameters/Returns)
47
+ * @default 'component'
48
+ */
49
+ kind?: 'component' | 'composable'
50
+ /** Props / Attributes(组件) */
46
51
  props?: PropDoc[]
47
- /** Emits / Events */
52
+ /** Emits / Events(组件) */
48
53
  emits?: EmitDoc[]
49
- /** Slots */
54
+ /** Slots(组件) */
50
55
  slots?: SlotDoc[]
56
+ /** 函数参数(composable) */
57
+ params?: PropDoc[]
58
+ /** 返回值字段 / 方法(composable) */
59
+ returns?: PropDoc[]
51
60
  }