@flowdrop/flowdrop 2.8.0 → 2.9.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/CHANGELOG.md +40 -0
- package/dist/components/form/FieldFactory.svelte +478 -0
- package/dist/components/form/FieldFactory.svelte.d.ts +14 -0
- package/dist/components/form/FormField.svelte +19 -404
- package/dist/components/form/FormField.svelte.d.ts +2 -27
- package/dist/components/form/FormFieldLight.svelte +11 -424
- package/dist/components/form/FormFieldLight.svelte.d.ts +2 -28
- package/dist/components/form/FormMarkdownEditor.svelte +11 -4
- package/dist/components/form/FormTemplateEditor.svelte +12 -5
- package/dist/components/form/resolveFieldType.d.ts +18 -15
- package/dist/components/form/resolveFieldType.js +33 -12
- package/dist/components/form/types.d.ts +14 -2
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* These types provide a foundation for dynamic form rendering based on JSON Schema
|
|
6
6
|
* and support extensibility for complex field types like arrays and objects.
|
|
7
7
|
*/
|
|
8
|
-
import type { AutocompleteConfig, TemplateVariablesConfig } from '../../types/index.js';
|
|
8
|
+
import type { AutocompleteConfig, TemplateVariablesConfig, WorkflowNode, WorkflowEdge } from '../../types/index.js';
|
|
9
|
+
import type { AuthProvider } from '../../types/auth.js';
|
|
9
10
|
/**
|
|
10
11
|
* Supported field types for form rendering
|
|
11
12
|
* Aligned with JSON Schema specification (draft-07)
|
|
@@ -308,7 +309,8 @@ export interface FieldSchema {
|
|
|
308
309
|
[key: string]: unknown;
|
|
309
310
|
}
|
|
310
311
|
/**
|
|
311
|
-
* Props for the
|
|
312
|
+
* Props for the field factory components (`FormField` from `form`,
|
|
313
|
+
* `FormFieldFull` from `form/full`)
|
|
312
314
|
* Renders the appropriate field component based on schema
|
|
313
315
|
*/
|
|
314
316
|
export interface FormFieldFactoryProps {
|
|
@@ -322,6 +324,16 @@ export interface FormFieldFactoryProps {
|
|
|
322
324
|
required?: boolean;
|
|
323
325
|
/** Animation delay index for staggered animations */
|
|
324
326
|
animationIndex?: number;
|
|
327
|
+
/** Current workflow node (optional, forwarded to registered editors for template variable API mode) */
|
|
328
|
+
node?: WorkflowNode;
|
|
329
|
+
/** All workflow nodes (optional, forwarded to registered editors for port-derived variables) */
|
|
330
|
+
nodes?: WorkflowNode[];
|
|
331
|
+
/** All workflow edges (optional, forwarded to registered editors for port-derived variables) */
|
|
332
|
+
edges?: WorkflowEdge[];
|
|
333
|
+
/** Workflow ID (optional, forwarded to registered editors for template variable API mode) */
|
|
334
|
+
workflowId?: string;
|
|
335
|
+
/** Auth provider (optional, forwarded to registered editors for API requests) */
|
|
336
|
+
authProvider?: AuthProvider;
|
|
325
337
|
/** Callback when the field value changes */
|
|
326
338
|
onChange: (value: unknown) => void;
|
|
327
339
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A drop-in visual workflow editor for any web application. You own the backend. You own the data. You own the orchestration.",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.9.0",
|
|
7
7
|
"author": "Shibin Das (D34dMan)",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/flowdrop-io/flowdrop/issues"
|