@apteva/apteva-kit 0.1.88 → 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 +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +207 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +127 -82
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -135,15 +135,16 @@ interface FlowStep {
|
|
|
135
135
|
id: string;
|
|
136
136
|
label: string;
|
|
137
137
|
description?: string;
|
|
138
|
+
type?: string;
|
|
138
139
|
status?: 'pending' | 'active' | 'completed' | 'error' | 'skipped';
|
|
139
140
|
}
|
|
140
141
|
interface FlowWidget extends Widget {
|
|
141
142
|
type: 'flow';
|
|
142
143
|
props: {
|
|
143
|
-
title
|
|
144
|
+
title: string;
|
|
145
|
+
subtitle?: string;
|
|
146
|
+
icon?: string;
|
|
144
147
|
steps: FlowStep[];
|
|
145
|
-
direction?: 'vertical' | 'horizontal';
|
|
146
|
-
compact?: boolean;
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
150
|
interface GalleryWidget extends Widget {
|
|
@@ -231,8 +232,8 @@ declare const WIDGET_DEFINITIONS: {
|
|
|
231
232
|
readonly example: "@ui:chart[{\"chartType\": \"bar\", \"data\": {\"labels\": [\"A\"], \"datasets\": [{\"label\": \"X\", \"data\": [10]}]}}]";
|
|
232
233
|
};
|
|
233
234
|
readonly flow: {
|
|
234
|
-
readonly schema: "title?, steps: [{id, label,
|
|
235
|
-
readonly example: "@ui:flow[{\"title\": \"
|
|
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\"}]}]";
|
|
236
237
|
};
|
|
237
238
|
};
|
|
238
239
|
type WidgetType = keyof typeof WIDGET_DEFINITIONS;
|
package/dist/index.d.ts
CHANGED
|
@@ -135,15 +135,16 @@ interface FlowStep {
|
|
|
135
135
|
id: string;
|
|
136
136
|
label: string;
|
|
137
137
|
description?: string;
|
|
138
|
+
type?: string;
|
|
138
139
|
status?: 'pending' | 'active' | 'completed' | 'error' | 'skipped';
|
|
139
140
|
}
|
|
140
141
|
interface FlowWidget extends Widget {
|
|
141
142
|
type: 'flow';
|
|
142
143
|
props: {
|
|
143
|
-
title
|
|
144
|
+
title: string;
|
|
145
|
+
subtitle?: string;
|
|
146
|
+
icon?: string;
|
|
144
147
|
steps: FlowStep[];
|
|
145
|
-
direction?: 'vertical' | 'horizontal';
|
|
146
|
-
compact?: boolean;
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
150
|
interface GalleryWidget extends Widget {
|
|
@@ -231,8 +232,8 @@ declare const WIDGET_DEFINITIONS: {
|
|
|
231
232
|
readonly example: "@ui:chart[{\"chartType\": \"bar\", \"data\": {\"labels\": [\"A\"], \"datasets\": [{\"label\": \"X\", \"data\": [10]}]}}]";
|
|
232
233
|
};
|
|
233
234
|
readonly flow: {
|
|
234
|
-
readonly schema: "title?, steps: [{id, label,
|
|
235
|
-
readonly example: "@ui:flow[{\"title\": \"
|
|
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\"}]}]";
|
|
236
237
|
};
|
|
237
238
|
};
|
|
238
239
|
type WidgetType = keyof typeof WIDGET_DEFINITIONS;
|