feat: initial scaffold — swappable flow editor
Extracted from fai/studio's lib/pages/flow_editor.dart so the editor can be swapped out independently of the host. Public surface kept minimal — a single FlowEditorPage widget with three named parameters (initialFlowName, locale, onRun). The package brings its own design tokens, empty/error widgets, l10n table; no host-internal types leak through. Studio depends on this repo via pubspec.yaml git reference. Forks point Studio at a different URL and rebuild. See README.md for the swap recipe. Signed-off-by: F∆I Platform <platform@flemming.ai>
This commit is contained in:
commit
51f9a1d2b1
8 changed files with 1128 additions and 0 deletions
17
lib/fai_studio_flow_editor.dart
Normal file
17
lib/fai_studio_flow_editor.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/// Inline YAML editor for F∆I Studio flows — swappable.
|
||||
///
|
||||
/// Studio depends on this package via pubspec.yaml. To use a
|
||||
/// different editor, fork this repo, change the implementation,
|
||||
/// point Studio's pubspec at the fork, rebuild Studio.
|
||||
///
|
||||
/// Public surface:
|
||||
/// * [FlowEditorPage] — the page widget Studio embeds as
|
||||
/// its "Editor" destination + as a route push from the
|
||||
/// Flows page's pencil icon.
|
||||
/// * [FlowEditorLocale] — the locale the package renders
|
||||
/// its inline strings in. Studio passes its active
|
||||
/// Locale through.
|
||||
library;
|
||||
|
||||
export 'src/flow_editor_page.dart' show FlowEditorPage;
|
||||
export 'src/l10n.dart' show FlowEditorLocale;
|
||||
Loading…
Add table
Add a link
Reference in a new issue