@flowdrop/flowdrop 2.16.0 → 2.18.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +6 -1
  3. package/dist/api/enhanced-client.d.ts +3 -1
  4. package/dist/api/enhanced-client.js +4 -2
  5. package/dist/commands/executor.js +9 -0
  6. package/dist/commands/storeIntegration.svelte.js +6 -0
  7. package/dist/commands/types.d.ts +8 -0
  8. package/dist/components/App.svelte +414 -105
  9. package/dist/components/App.svelte.d.ts +31 -0
  10. package/dist/components/CanvasToolbar.svelte +40 -3
  11. package/dist/components/CanvasToolbar.svelte.d.ts +5 -1
  12. package/dist/components/ConnectPortPicker.svelte +8 -4
  13. package/dist/components/DoctorMenu.svelte +208 -126
  14. package/dist/components/FlowDropZone.svelte +7 -1
  15. package/dist/components/FlowDropZone.svelte.d.ts +5 -0
  16. package/dist/components/ImpactConfirm.svelte +554 -0
  17. package/dist/components/ImpactConfirm.svelte.d.ts +22 -0
  18. package/dist/components/Input.svelte +8 -2
  19. package/dist/components/LockBanner.svelte +76 -0
  20. package/dist/components/LockBanner.svelte.d.ts +14 -0
  21. package/dist/components/LockFence.svelte +33 -0
  22. package/dist/components/LockFence.svelte.d.ts +19 -0
  23. package/dist/components/Navbar.svelte +77 -9
  24. package/dist/components/Navbar.svelte.d.ts +10 -0
  25. package/dist/components/NodeSidebar.svelte +36 -15
  26. package/dist/components/NodeSidebar.svelte.d.ts +2 -0
  27. package/dist/components/NodeSwapPicker.svelte +4 -14
  28. package/dist/components/RunBar.svelte +50 -3
  29. package/dist/components/RunBar.svelte.d.ts +5 -0
  30. package/dist/components/RunInputsDialog.svelte +198 -0
  31. package/dist/components/RunInputsDialog.svelte.d.ts +34 -0
  32. package/dist/components/Textarea.svelte +7 -1
  33. package/dist/components/WorkflowCompareDialog.svelte +177 -0
  34. package/dist/components/WorkflowCompareDialog.svelte.d.ts +10 -0
  35. package/dist/components/WorkflowEditor.svelte +120 -15
  36. package/dist/components/WorkflowEditor.svelte.d.ts +6 -0
  37. package/dist/components/WorkflowInterfaceEditor.svelte +17 -4
  38. package/dist/components/WorkflowInterfaceEntryCard.svelte +40 -7
  39. package/dist/components/WorkflowInterfaceEntryCard.svelte.d.ts +2 -0
  40. package/dist/components/WorkflowPlaygroundSettings.svelte +9 -1
  41. package/dist/components/form/FieldFactory.svelte +13 -6
  42. package/dist/components/form/FormArray.svelte +0 -1
  43. package/dist/components/form/FormArrayRows.svelte +4 -4
  44. package/dist/components/form/FormCodeEditor.svelte +18 -2
  45. package/dist/components/form/FormMarkdownEditor.svelte +22 -8
  46. package/dist/components/form/FormTemplateEditor.svelte +17 -1
  47. package/dist/components/form/readOnly.d.ts +13 -0
  48. package/dist/components/form/readOnly.js +18 -0
  49. package/dist/components/nodes/CaptionNode.svelte +1 -0
  50. package/dist/components/nodes/NodeCard.svelte +2 -2
  51. package/dist/components/primitives/Checkbox.svelte +5 -1
  52. package/dist/components/primitives/Select.svelte +6 -1
  53. package/dist/components/primitives/Switch.svelte +5 -1
  54. package/dist/components/toast/DismissibleToast.svelte +25 -6
  55. package/dist/components/toast/DismissibleToast.svelte.d.ts +3 -0
  56. package/dist/config/endpoints.d.ts +7 -0
  57. package/dist/config/endpoints.js +2 -1
  58. package/dist/editor/connectCandidates.d.ts +3 -0
  59. package/dist/editor/connectCandidates.js +14 -5
  60. package/dist/editor/index.d.ts +2 -1
  61. package/dist/editor/index.js +1 -1
  62. package/dist/helpers/workflowEditorHelper.d.ts +15 -0
  63. package/dist/helpers/workflowEditorHelper.js +9 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/messages/defaults.d.ts +145 -0
  66. package/dist/messages/defaults.js +139 -1
  67. package/dist/openapi/v1/openapi.yaml +492 -0
  68. package/dist/registry/nodeComponentRegistry.d.ts +5 -0
  69. package/dist/schemas/v1/workflow.schema.json +2 -0
  70. package/dist/services/draftStorage.d.ts +24 -10
  71. package/dist/services/draftStorage.js +60 -35
  72. package/dist/services/globalSave.d.ts +45 -10
  73. package/dist/services/globalSave.js +296 -32
  74. package/dist/services/impactGate.d.ts +38 -0
  75. package/dist/services/impactGate.js +72 -0
  76. package/dist/services/impactService.d.ts +45 -0
  77. package/dist/services/impactService.js +157 -0
  78. package/dist/services/runsService.d.ts +9 -0
  79. package/dist/services/runsService.js +13 -0
  80. package/dist/services/toastQueue.d.ts +9 -0
  81. package/dist/services/toastService.d.ts +4 -0
  82. package/dist/services/toastService.js +9 -3
  83. package/dist/services/workflowLaunchService.d.ts +6 -0
  84. package/dist/services/workflowLaunchService.js +5 -1
  85. package/dist/settings/index.d.ts +2 -2
  86. package/dist/settings/index.js +1 -1
  87. package/dist/stores/doctorStore.svelte.d.ts +24 -1
  88. package/dist/stores/doctorStore.svelte.js +105 -2
  89. package/dist/stores/historyStore.svelte.d.ts +12 -2
  90. package/dist/stores/historyStore.svelte.js +25 -2
  91. package/dist/stores/instanceContainer.svelte.d.ts +23 -0
  92. package/dist/stores/instanceContainer.svelte.js +32 -2
  93. package/dist/stores/lockStore.svelte.d.ts +39 -0
  94. package/dist/stores/lockStore.svelte.js +109 -0
  95. package/dist/stores/runController.svelte.d.ts +2 -0
  96. package/dist/stores/runController.svelte.js +27 -11
  97. package/dist/stores/saveConflictStore.svelte.d.ts +62 -0
  98. package/dist/stores/saveConflictStore.svelte.js +169 -0
  99. package/dist/stores/workflowStore.svelte.d.ts +14 -4
  100. package/dist/stores/workflowStore.svelte.js +55 -18
  101. package/dist/styles/base.css +6 -0
  102. package/dist/styles/toast.css +10 -1
  103. package/dist/svelte-app.d.ts +33 -0
  104. package/dist/svelte-app.js +178 -22
  105. package/dist/types/doctor.d.ts +3 -1
  106. package/dist/types/events.d.ts +37 -0
  107. package/dist/types/events.js +2 -0
  108. package/dist/types/impact.d.ts +77 -0
  109. package/dist/types/impact.js +7 -0
  110. package/dist/types/lock.d.ts +35 -0
  111. package/dist/types/lock.js +13 -0
  112. package/dist/types/navbar.d.ts +6 -0
  113. package/dist/types/settings.d.ts +31 -0
  114. package/dist/types/settings.js +132 -0
  115. package/dist/utils/draftRestore.d.ts +27 -0
  116. package/dist/utils/draftRestore.js +36 -0
  117. package/dist/utils/interfaceTags.js +4 -1
  118. package/dist/utils/links.d.ts +29 -0
  119. package/dist/utils/links.js +63 -0
  120. package/dist/utils/nodeSearch.d.ts +10 -0
  121. package/dist/utils/nodeSearch.js +37 -0
  122. package/dist/utils/runOffer.d.ts +21 -0
  123. package/dist/utils/runOffer.js +13 -0
  124. package/dist/utils/workflowCompare.d.ts +35 -0
  125. package/dist/utils/workflowCompare.js +84 -0
  126. package/dist/utils/workflowInterface.d.ts +26 -1
  127. package/dist/utils/workflowInterface.js +91 -11
  128. package/dist/webmcp/runtime.js +16 -3
  129. package/dist/webmcp/types.d.ts +11 -1
  130. package/package.json +3 -2
@@ -0,0 +1,198 @@
1
+ <!--
2
+ @component
3
+ The small form Run opens for a workflow that has inputs: a modal titled "Run {workflow name}" with
4
+ one field per input (the Playground's `InterfaceInputForm`), a Run button (Cmd/Ctrl+Enter) and Cancel.
5
+
6
+ The dialog only draws and reports; the host (App) owns the values, starts the run and closes it.
7
+ A refused run keeps the dialog open and names the reason under the Run button.
8
+
9
+ **Use it for** asking for a workflow's inputs before a run starts from the canvas.
10
+ **Not for** the Playground's own inputs card (use `InterfaceInputForm` there).
11
+ -->
12
+
13
+ <script lang="ts">
14
+ import Icon from '@iconify/svelte';
15
+ import InterfaceInputForm from './playground/InterfaceInputForm.svelte';
16
+ import PanelHeader from './primitives/PanelHeader.svelte';
17
+ import IconButton from './primitives/IconButton.svelte';
18
+ import Button from './primitives/Button.svelte';
19
+ import type { WorkflowInterfaceEntry } from '../types/index.js';
20
+ import { m } from '../messages/index.js';
21
+
22
+ interface Props {
23
+ /** Whether the dialog is open. */
24
+ open: boolean;
25
+ /** The workflow's name, shown in the title. */
26
+ workflowName: string;
27
+ /** The input entries to ask for. */
28
+ entries: WorkflowInterfaceEntry[];
29
+ /** Current values, keyed by entry id. */
30
+ values: Record<string, unknown>;
31
+ /** Called with the complete values on every change. */
32
+ onChange: (values: Record<string, unknown>) => void;
33
+ /** Start the run with the current values. */
34
+ onRun: () => void;
35
+ /** The run is being started: Run shows a spinner. */
36
+ runBusy?: boolean;
37
+ /** Why the last Run did not start. */
38
+ error?: string | null;
39
+ /** Close the dialog without running. */
40
+ onClose: () => void;
41
+ }
42
+
43
+ let {
44
+ open,
45
+ workflowName,
46
+ entries,
47
+ values,
48
+ onChange,
49
+ onRun,
50
+ runBusy = false,
51
+ error = null,
52
+ onClose
53
+ }: Props = $props();
54
+
55
+ // Unique per instance so two editors on one page do not share a DOM id.
56
+ const uid = $props.id();
57
+ const titleId = `${uid}-run-inputs-title`;
58
+
59
+ const labels = $derived(m().runInputsDialog);
60
+
61
+ let dialogRef = $state<HTMLDialogElement | null>(null);
62
+
63
+ $effect(() => {
64
+ if (!dialogRef) return;
65
+ if (open && !dialogRef.open) dialogRef.showModal();
66
+ else if (!open && dialogRef.open) dialogRef.close();
67
+ });
68
+
69
+ /** Whether the press that led to the click began on the backdrop (the dialog element itself). */
70
+ let pressedOnBackdrop = false;
71
+
72
+ function handlePointerDown(event: PointerEvent): void {
73
+ pressedOnBackdrop = event.target === dialogRef;
74
+ }
75
+
76
+ // A text selection that starts in a field and ends over the backdrop clicks
77
+ // the dialog too: close only when the press began there as well.
78
+ function handleBackdropClick(event: MouseEvent): void {
79
+ const started = pressedOnBackdrop;
80
+ pressedOnBackdrop = false;
81
+ if (started && event.target === dialogRef) onClose();
82
+ }
83
+
84
+ // The native close event also fires for Escape.
85
+ function handleDialogClose(): void {
86
+ if (open) onClose();
87
+ }
88
+ </script>
89
+
90
+ <!-- native <dialog> backdrop click-to-close pattern -->
91
+ <dialog
92
+ bind:this={dialogRef}
93
+ class="flowdrop-scope flowdrop-run-inputs"
94
+ data-testid="run-inputs-dialog"
95
+ onpointerdown={handlePointerDown}
96
+ onclick={handleBackdropClick}
97
+ onclose={handleDialogClose}
98
+ aria-labelledby={titleId}
99
+ >
100
+ <div class="flowdrop-run-inputs__container">
101
+ <PanelHeader title={labels.title({ name: workflowName })} {titleId}>
102
+ {#snippet actions()}
103
+ <IconButton ariaLabel={labels.close} title={m().common.close} onclick={onClose}>
104
+ <Icon icon="mdi:close" />
105
+ </IconButton>
106
+ {/snippet}
107
+ </PanelHeader>
108
+
109
+ <div class="flowdrop-run-inputs__content">
110
+ {#if open}
111
+ <InterfaceInputForm {entries} {values} {onChange} {onRun} {runBusy} {error} />
112
+ {/if}
113
+ </div>
114
+
115
+ <div class="flowdrop-run-inputs__footer">
116
+ <Button variant="ghost" data-testid="run-inputs-cancel" onclick={onClose}>
117
+ {m().common.cancel}
118
+ </Button>
119
+ </div>
120
+ </div>
121
+ </dialog>
122
+
123
+ <style>
124
+ .flowdrop-run-inputs {
125
+ position: fixed;
126
+ inset: 0;
127
+ width: 100%;
128
+ max-width: 100%;
129
+ height: 100%;
130
+ max-height: 100%;
131
+ margin: 0;
132
+ padding: 0;
133
+ border: none;
134
+ background-color: transparent;
135
+ overflow: hidden;
136
+ }
137
+
138
+ .flowdrop-run-inputs::backdrop {
139
+ background-color: var(--fd-backdrop);
140
+ backdrop-filter: blur(4px);
141
+ }
142
+
143
+ .flowdrop-run-inputs[open] {
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
147
+ }
148
+
149
+ .flowdrop-run-inputs__container {
150
+ display: flex;
151
+ flex-direction: column;
152
+ width: 90vw;
153
+ max-width: 560px;
154
+ max-height: min(80vh, 640px);
155
+ background-color: var(--fd-background);
156
+ border: 1px solid var(--fd-border);
157
+ border-radius: var(--fd-modal-radius);
158
+ box-shadow: var(--fd-shadow-lg);
159
+ overflow: hidden;
160
+ }
161
+
162
+ .flowdrop-run-inputs__container :global(.flowdrop-ui-panel-header) {
163
+ height: var(--fd-modal-header-height);
164
+ }
165
+
166
+ .flowdrop-run-inputs__container :global(.flowdrop-ui-panel-header__title) {
167
+ font-size: var(--fd-modal-title-size);
168
+ }
169
+
170
+ .flowdrop-run-inputs__content {
171
+ flex: 1 1 auto;
172
+ min-height: 0;
173
+ overflow: auto;
174
+ }
175
+
176
+ /* The form is a card for the Playground; inside the dialog it fills the width. */
177
+ .flowdrop-run-inputs__content :global(.interface-input-form) {
178
+ max-width: none;
179
+ padding: var(--fd-space-md);
180
+ }
181
+
182
+ .flowdrop-run-inputs__footer {
183
+ display: flex;
184
+ justify-content: flex-end;
185
+ padding: var(--fd-space-sm) var(--fd-space-md);
186
+ border-top: 1px solid var(--fd-border);
187
+ }
188
+
189
+ @media (max-width: 640px) {
190
+ .flowdrop-run-inputs__container {
191
+ width: 100%;
192
+ height: 100%;
193
+ max-width: 100%;
194
+ max-height: 100%;
195
+ border-radius: 0;
196
+ }
197
+ }
198
+ </style>
@@ -0,0 +1,34 @@
1
+ import type { WorkflowInterfaceEntry } from '../types/index.js';
2
+ interface Props {
3
+ /** Whether the dialog is open. */
4
+ open: boolean;
5
+ /** The workflow's name, shown in the title. */
6
+ workflowName: string;
7
+ /** The input entries to ask for. */
8
+ entries: WorkflowInterfaceEntry[];
9
+ /** Current values, keyed by entry id. */
10
+ values: Record<string, unknown>;
11
+ /** Called with the complete values on every change. */
12
+ onChange: (values: Record<string, unknown>) => void;
13
+ /** Start the run with the current values. */
14
+ onRun: () => void;
15
+ /** The run is being started: Run shows a spinner. */
16
+ runBusy?: boolean;
17
+ /** Why the last Run did not start. */
18
+ error?: string | null;
19
+ /** Close the dialog without running. */
20
+ onClose: () => void;
21
+ }
22
+ /**
23
+ * The small form Run opens for a workflow that has inputs: a modal titled "Run {workflow name}" with
24
+ * one field per input (the Playground's `InterfaceInputForm`), a Run button (Cmd/Ctrl+Enter) and Cancel.
25
+ *
26
+ * The dialog only draws and reports; the host (App) owns the values, starts the run and closes it.
27
+ * A refused run keeps the dialog open and names the reason under the Run button.
28
+ *
29
+ * **Use it for** asking for a workflow's inputs before a run starts from the canvas.
30
+ * **Not for** the Playground's own inputs card (use `InterfaceInputForm` there).
31
+ */
32
+ declare const RunInputsDialog: import("svelte").Component<Props, {}, "">;
33
+ type RunInputsDialog = ReturnType<typeof RunInputsDialog>;
34
+ export default RunInputsDialog;
@@ -11,6 +11,7 @@
11
11
 
12
12
  <script lang="ts">
13
13
  import type { HTMLTextareaAttributes } from 'svelte/elements';
14
+ import { useFormReadOnly } from './form/readOnly.js';
14
15
 
15
16
  interface Props extends HTMLTextareaAttributes {
16
17
  /** Size — `md` is the base; `sm`/`lg` add a modifier */
@@ -23,6 +24,11 @@
23
24
 
24
25
  let { size = 'md', invalid = false, class: className = '', ...rest }: Props = $props();
25
26
 
27
+ const formReadOnly = useFormReadOnly();
28
+ // A read-only form (a locked editor) keeps the value readable: it can be
29
+ // focused, selected and copied, just not changed. Hence readonly, not disabled.
30
+ const isReadOnly = $derived(Boolean(rest.readonly) || formReadOnly());
31
+
26
32
  const textareaClass = $derived(
27
33
  [
28
34
  'flowdrop-input',
@@ -36,4 +42,4 @@
36
42
  );
37
43
  </script>
38
44
 
39
- <textarea class={textareaClass} {...rest}></textarea>
45
+ <textarea class={textareaClass} {...rest} readonly={isReadOnly}></textarea>
@@ -0,0 +1,177 @@
1
+ <!--
2
+ Workflow Compare Dialog
3
+
4
+ Lists, in plain words, what differs between your version of a workflow and
5
+ the saved one, and lets the person keep theirs, load the saved one, or cancel.
6
+ Mount it when a comparison is wanted; it opens as a modal and puts focus back
7
+ on the opener when it goes away.
8
+ -->
9
+
10
+ <script lang="ts">
11
+ import Button from './primitives/Button.svelte';
12
+ import { onMount } from 'svelte';
13
+ import { m } from '../messages/index.js';
14
+ import type { WorkflowComparison } from '../utils/workflowCompare.js';
15
+
16
+ interface Props {
17
+ comparison: WorkflowComparison;
18
+ onKeepMine: () => void;
19
+ onLoadTheirs: () => void;
20
+ onClose: () => void;
21
+ }
22
+
23
+ let { comparison, onKeepMine, onLoadTheirs, onClose }: Props = $props();
24
+
25
+ const uid = $props.id();
26
+ const titleId = `${uid}-compare-title`;
27
+
28
+ let dialogRef = $state<HTMLDialogElement | null>(null);
29
+
30
+ onMount(() => {
31
+ const opener = document.activeElement as HTMLElement | null;
32
+ dialogRef?.showModal();
33
+ return () => {
34
+ if (dialogRef?.open) dialogRef.close();
35
+ opener?.focus?.();
36
+ };
37
+ });
38
+
39
+ const only = (n: number) => m().compare.wiresOnly({ n });
40
+
41
+ const mineLines = $derived([
42
+ ...comparison.nodesOnlyMine.map((n) => m().compare.stepOnly({ label: n.label })),
43
+ ...(comparison.edgesOnlyMine > 0 ? [only(comparison.edgesOnlyMine)] : [])
44
+ ]);
45
+ const theirLines = $derived([
46
+ ...comparison.nodesOnlyTheirs.map((n) => m().compare.stepOnly({ label: n.label })),
47
+ ...(comparison.edgesOnlyTheirs > 0 ? [only(comparison.edgesOnlyTheirs)] : [])
48
+ ]);
49
+ const bothLines = $derived([
50
+ ...(comparison.name
51
+ ? [m().compare.name({ mine: comparison.name.mine, theirs: comparison.name.theirs })]
52
+ : []),
53
+ ...(comparison.description ? [m().compare.description] : []),
54
+ ...comparison.nodesChanged.flatMap((n) =>
55
+ n.what.map((w) =>
56
+ w === 'settings'
57
+ ? m().compare.stepSettings({ label: n.label })
58
+ : w === 'label'
59
+ ? m().compare.stepLabel({ label: n.label })
60
+ : m().compare.stepPosition({ label: n.label })
61
+ )
62
+ ),
63
+ ...(comparison.interfaceChanged ? [m().compare.interface] : []),
64
+ ...(comparison.chatChanged ? [m().compare.chat] : [])
65
+ ]);
66
+
67
+ const groups = $derived([
68
+ { heading: m().compare.onlyMine, lines: mineLines },
69
+ { heading: m().compare.onlyTheirs, lines: theirLines },
70
+ { heading: m().compare.changedInBoth, lines: bothLines }
71
+ ]);
72
+ </script>
73
+
74
+ <dialog
75
+ bind:this={dialogRef}
76
+ class="flowdrop-scope flowdrop-compare-dialog"
77
+ aria-labelledby={titleId}
78
+ oncancel={(event) => {
79
+ event.preventDefault();
80
+ onClose();
81
+ }}
82
+ >
83
+ <div class="flowdrop-compare-dialog__container">
84
+ <h2 id={titleId} class="flowdrop-compare-dialog__title">{m().compare.title}</h2>
85
+
86
+ <div class="flowdrop-compare-dialog__body">
87
+ {#if comparison.same}
88
+ <p>{m().compare.none}</p>
89
+ {:else}
90
+ {#each groups as group (group.heading)}
91
+ {#if group.lines.length > 0}
92
+ <section>
93
+ <h3 class="flowdrop-compare-dialog__heading">{group.heading}</h3>
94
+ <ul>
95
+ {#each group.lines as line, i (`${i}:${line}`)}
96
+ <li>{line}</li>
97
+ {/each}
98
+ </ul>
99
+ </section>
100
+ {/if}
101
+ {/each}
102
+ {/if}
103
+ </div>
104
+
105
+ <div class="flowdrop-compare-dialog__actions">
106
+ <Button variant="primary" onclick={onKeepMine}>{m().compare.keepMine}</Button>
107
+ <Button onclick={onLoadTheirs}>{m().compare.loadTheirs}</Button>
108
+ <Button onclick={onClose}>{m().compare.cancel}</Button>
109
+ </div>
110
+ </div>
111
+ </dialog>
112
+
113
+ <style>
114
+ .flowdrop-compare-dialog {
115
+ position: fixed;
116
+ inset: 0;
117
+ width: 100%;
118
+ max-width: 100%;
119
+ height: 100%;
120
+ max-height: 100%;
121
+ margin: 0;
122
+ padding: 0;
123
+ border: none;
124
+ background-color: transparent;
125
+ }
126
+
127
+ .flowdrop-compare-dialog::backdrop {
128
+ background-color: var(--fd-backdrop);
129
+ }
130
+
131
+ .flowdrop-compare-dialog[open] {
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ }
136
+
137
+ .flowdrop-compare-dialog__container {
138
+ display: flex;
139
+ flex-direction: column;
140
+ gap: 1rem;
141
+ width: 90vw;
142
+ max-width: 560px;
143
+ max-height: min(80vh, 640px);
144
+ padding: 1.25rem;
145
+ background-color: var(--fd-background);
146
+ color: var(--fd-foreground);
147
+ border: 1px solid var(--fd-border);
148
+ border-radius: var(--fd-modal-radius);
149
+ }
150
+
151
+ .flowdrop-compare-dialog__title {
152
+ margin: 0;
153
+ font-size: var(--fd-modal-title-size);
154
+ }
155
+
156
+ .flowdrop-compare-dialog__body {
157
+ overflow-y: auto;
158
+ min-height: 0;
159
+ }
160
+
161
+ .flowdrop-compare-dialog__heading {
162
+ margin: 0 0 0.25rem;
163
+ font-size: var(--fd-text-sm);
164
+ }
165
+
166
+ .flowdrop-compare-dialog__body ul {
167
+ margin: 0 0 1rem;
168
+ padding-left: 1.25rem;
169
+ }
170
+
171
+ .flowdrop-compare-dialog__actions {
172
+ display: flex;
173
+ flex-wrap: wrap;
174
+ gap: 0.5rem;
175
+ justify-content: flex-end;
176
+ }
177
+ </style>
@@ -0,0 +1,10 @@
1
+ import type { WorkflowComparison } from '../utils/workflowCompare.js';
2
+ interface Props {
3
+ comparison: WorkflowComparison;
4
+ onKeepMine: () => void;
5
+ onLoadTheirs: () => void;
6
+ onClose: () => void;
7
+ }
8
+ declare const WorkflowCompareDialog: import("svelte").Component<Props, {}, "">;
9
+ type WorkflowCompareDialog = ReturnType<typeof WorkflowCompareDialog>;
10
+ export default WorkflowCompareDialog;