@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.
- package/dist/components/AppUserPanel/doc.d.ts +3 -0
- package/dist/components/Chat/RagContextPanel/doc.d.ts +3 -0
- package/dist/components/Chat/StarterPromptGrid/doc.d.ts +3 -0
- package/dist/components/Chat/TaskChainBar/doc.d.ts +3 -0
- package/dist/components/Chat/TipBanner/doc.d.ts +3 -0
- package/dist/components/SliderCaptcha/doc.d.ts +3 -0
- package/dist/composables/useChatScroll.doc.d.ts +3 -0
- package/dist/composables/useClientPagination.doc.d.ts +3 -0
- package/dist/composables/useClipboard.doc.d.ts +3 -0
- package/dist/composables/useConfirm.doc.d.ts +3 -0
- package/dist/composables/useDataLoading.doc.d.ts +3 -0
- package/dist/composables/useDebounceFn.doc.d.ts +3 -0
- package/dist/composables/useMessage.doc.d.ts +3 -0
- package/dist/composables/useRealtime.doc.d.ts +3 -0
- package/dist/composables/useToast.doc.d.ts +3 -0
- package/dist/docs/index.d.ts +15 -0
- package/dist/docs/types.d.ts +14 -5
- package/package.json +1 -1
- package/src/docs/index.ts +45 -0
- package/src/docs/types.ts +14 -5
package/dist/docs/index.d.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';
|
package/dist/docs/types.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
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
|
-
/**
|
|
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
|
}
|