@apteva/apteva-kit 0.1.87 → 0.1.89
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/index.d.mts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +233 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -448
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -131,6 +131,22 @@ interface ImageWidget extends Widget {
|
|
|
131
131
|
caption?: string;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
+
interface FlowStep {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
type?: string;
|
|
139
|
+
status?: 'pending' | 'active' | 'completed' | 'error' | 'skipped';
|
|
140
|
+
}
|
|
141
|
+
interface FlowWidget extends Widget {
|
|
142
|
+
type: 'flow';
|
|
143
|
+
props: {
|
|
144
|
+
title: string;
|
|
145
|
+
subtitle?: string;
|
|
146
|
+
icon?: string;
|
|
147
|
+
steps: FlowStep[];
|
|
148
|
+
};
|
|
149
|
+
}
|
|
134
150
|
interface GalleryWidget extends Widget {
|
|
135
151
|
type: 'gallery';
|
|
136
152
|
props: {
|
|
@@ -215,6 +231,10 @@ declare const WIDGET_DEFINITIONS: {
|
|
|
215
231
|
readonly schema: "chartType: line|bar|pie, data: {labels, datasets}";
|
|
216
232
|
readonly example: "@ui:chart[{\"chartType\": \"bar\", \"data\": {\"labels\": [\"A\"], \"datasets\": [{\"label\": \"X\", \"data\": [10]}]}}]";
|
|
217
233
|
};
|
|
234
|
+
readonly flow: {
|
|
235
|
+
readonly schema: "title, subtitle?, icon?: research|schedule|analyze|deploy, steps: [{id, label, type?: time|agent|email|slack|build|test|deploy, status?: pending|active|completed|error}], actions?: [{type, label}] - Horizontal pipeline with action button. Use @label for agents.";
|
|
236
|
+
readonly example: "@ui:flow[{\"title\": \"Deploy to Production\", \"icon\": \"deploy\", \"steps\": [{\"id\": \"1\", \"label\": \"Test\"}, {\"id\": \"2\", \"label\": \"Build\"}, {\"id\": \"3\", \"label\": \"Deploy\"}], \"actions\": [{\"type\": \"run\", \"label\": \"Run\"}]}]";
|
|
237
|
+
};
|
|
218
238
|
};
|
|
219
239
|
type WidgetType = keyof typeof WIDGET_DEFINITIONS;
|
|
220
240
|
|
|
@@ -493,4 +513,4 @@ declare const mockMessages: Message[];
|
|
|
493
513
|
declare const mockThreads: Thread[];
|
|
494
514
|
declare const mockWidgets: Widget[];
|
|
495
515
|
|
|
496
|
-
export { type Action, type ActionEvent, AptevaClient, type AptevaClientConfig, type AptevaKitControl, Button, type ButtonGroupWidget, type ButtonWidget, Card, type CardWidget, type ChartWidget, Chat, type ChatHandle, type ChatMessage, type ChatProps, type ChatRequest, type ChatResponse, Command, type CommandProps, type CommandResult, type FormField, type FormWidget, type GalleryWidget, type ImageWidget, List, type ListItem, type ListWidget, type MapWidget, type Message, Prompt, type PromptProps, type SendMessageParams, Stream, type StreamChunk, type StreamProps, type SuggestedPrompt, type TableColumn, type TableWidget, type Thread, Threads, type ThreadsProps, type UseAptevaKitReturn, type Widget, Widgets, type WidgetsProps, aptevaClient, cn, getThemeScript, mockMessages, mockThreads, mockWidgets };
|
|
516
|
+
export { type Action, type ActionEvent, AptevaClient, type AptevaClientConfig, type AptevaKitControl, Button, type ButtonGroupWidget, type ButtonWidget, Card, type CardWidget, type ChartWidget, Chat, type ChatHandle, type ChatMessage, type ChatProps, type ChatRequest, type ChatResponse, Command, type CommandProps, type CommandResult, type FlowStep, type FlowWidget, type FormField, type FormWidget, type GalleryWidget, type ImageWidget, List, type ListItem, type ListWidget, type MapWidget, type Message, Prompt, type PromptProps, type SendMessageParams, Stream, type StreamChunk, type StreamProps, type SuggestedPrompt, type TableColumn, type TableWidget, type Thread, Threads, type ThreadsProps, type UseAptevaKitReturn, type Widget, Widgets, type WidgetsProps, aptevaClient, cn, getThemeScript, mockMessages, mockThreads, mockWidgets };
|
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,22 @@ interface ImageWidget extends Widget {
|
|
|
131
131
|
caption?: string;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
+
interface FlowStep {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
type?: string;
|
|
139
|
+
status?: 'pending' | 'active' | 'completed' | 'error' | 'skipped';
|
|
140
|
+
}
|
|
141
|
+
interface FlowWidget extends Widget {
|
|
142
|
+
type: 'flow';
|
|
143
|
+
props: {
|
|
144
|
+
title: string;
|
|
145
|
+
subtitle?: string;
|
|
146
|
+
icon?: string;
|
|
147
|
+
steps: FlowStep[];
|
|
148
|
+
};
|
|
149
|
+
}
|
|
134
150
|
interface GalleryWidget extends Widget {
|
|
135
151
|
type: 'gallery';
|
|
136
152
|
props: {
|
|
@@ -215,6 +231,10 @@ declare const WIDGET_DEFINITIONS: {
|
|
|
215
231
|
readonly schema: "chartType: line|bar|pie, data: {labels, datasets}";
|
|
216
232
|
readonly example: "@ui:chart[{\"chartType\": \"bar\", \"data\": {\"labels\": [\"A\"], \"datasets\": [{\"label\": \"X\", \"data\": [10]}]}}]";
|
|
217
233
|
};
|
|
234
|
+
readonly flow: {
|
|
235
|
+
readonly schema: "title, subtitle?, icon?: research|schedule|analyze|deploy, steps: [{id, label, type?: time|agent|email|slack|build|test|deploy, status?: pending|active|completed|error}], actions?: [{type, label}] - Horizontal pipeline with action button. Use @label for agents.";
|
|
236
|
+
readonly example: "@ui:flow[{\"title\": \"Deploy to Production\", \"icon\": \"deploy\", \"steps\": [{\"id\": \"1\", \"label\": \"Test\"}, {\"id\": \"2\", \"label\": \"Build\"}, {\"id\": \"3\", \"label\": \"Deploy\"}], \"actions\": [{\"type\": \"run\", \"label\": \"Run\"}]}]";
|
|
237
|
+
};
|
|
218
238
|
};
|
|
219
239
|
type WidgetType = keyof typeof WIDGET_DEFINITIONS;
|
|
220
240
|
|
|
@@ -493,4 +513,4 @@ declare const mockMessages: Message[];
|
|
|
493
513
|
declare const mockThreads: Thread[];
|
|
494
514
|
declare const mockWidgets: Widget[];
|
|
495
515
|
|
|
496
|
-
export { type Action, type ActionEvent, AptevaClient, type AptevaClientConfig, type AptevaKitControl, Button, type ButtonGroupWidget, type ButtonWidget, Card, type CardWidget, type ChartWidget, Chat, type ChatHandle, type ChatMessage, type ChatProps, type ChatRequest, type ChatResponse, Command, type CommandProps, type CommandResult, type FormField, type FormWidget, type GalleryWidget, type ImageWidget, List, type ListItem, type ListWidget, type MapWidget, type Message, Prompt, type PromptProps, type SendMessageParams, Stream, type StreamChunk, type StreamProps, type SuggestedPrompt, type TableColumn, type TableWidget, type Thread, Threads, type ThreadsProps, type UseAptevaKitReturn, type Widget, Widgets, type WidgetsProps, aptevaClient, cn, getThemeScript, mockMessages, mockThreads, mockWidgets };
|
|
516
|
+
export { type Action, type ActionEvent, AptevaClient, type AptevaClientConfig, type AptevaKitControl, Button, type ButtonGroupWidget, type ButtonWidget, Card, type CardWidget, type ChartWidget, Chat, type ChatHandle, type ChatMessage, type ChatProps, type ChatRequest, type ChatResponse, Command, type CommandProps, type CommandResult, type FlowStep, type FlowWidget, type FormField, type FormWidget, type GalleryWidget, type ImageWidget, List, type ListItem, type ListWidget, type MapWidget, type Message, Prompt, type PromptProps, type SendMessageParams, Stream, type StreamChunk, type StreamProps, type SuggestedPrompt, type TableColumn, type TableWidget, type Thread, Threads, type ThreadsProps, type UseAptevaKitReturn, type Widget, Widgets, type WidgetsProps, aptevaClient, cn, getThemeScript, mockMessages, mockThreads, mockWidgets };
|