@flowdrop/flowdrop 2.16.0 → 2.17.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 (84) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +6 -1
  3. package/dist/components/App.svelte +212 -6
  4. package/dist/components/App.svelte.d.ts +2 -0
  5. package/dist/components/CanvasToolbar.svelte +40 -3
  6. package/dist/components/CanvasToolbar.svelte.d.ts +5 -1
  7. package/dist/components/ConnectPortPicker.svelte +8 -4
  8. package/dist/components/DoctorMenu.svelte +208 -126
  9. package/dist/components/ImpactConfirm.svelte +341 -0
  10. package/dist/components/ImpactConfirm.svelte.d.ts +12 -0
  11. package/dist/components/Navbar.svelte +42 -3
  12. package/dist/components/Navbar.svelte.d.ts +4 -0
  13. package/dist/components/NodeSidebar.svelte +36 -15
  14. package/dist/components/NodeSidebar.svelte.d.ts +2 -0
  15. package/dist/components/NodeSwapPicker.svelte +4 -14
  16. package/dist/components/RunBar.svelte +36 -1
  17. package/dist/components/RunBar.svelte.d.ts +5 -0
  18. package/dist/components/RunInputsDialog.svelte +198 -0
  19. package/dist/components/RunInputsDialog.svelte.d.ts +34 -0
  20. package/dist/components/WorkflowCompareDialog.svelte +177 -0
  21. package/dist/components/WorkflowCompareDialog.svelte.d.ts +10 -0
  22. package/dist/components/WorkflowEditor.svelte +88 -6
  23. package/dist/components/WorkflowEditor.svelte.d.ts +6 -0
  24. package/dist/components/WorkflowInterfaceEditor.svelte +14 -4
  25. package/dist/components/WorkflowInterfaceEntryCard.svelte +19 -3
  26. package/dist/components/WorkflowInterfaceEntryCard.svelte.d.ts +2 -0
  27. package/dist/components/nodes/NodeCard.svelte +2 -2
  28. package/dist/components/toast/DismissibleToast.svelte +25 -6
  29. package/dist/components/toast/DismissibleToast.svelte.d.ts +3 -0
  30. package/dist/config/endpoints.d.ts +7 -0
  31. package/dist/config/endpoints.js +2 -1
  32. package/dist/editor/connectCandidates.d.ts +3 -0
  33. package/dist/editor/connectCandidates.js +14 -5
  34. package/dist/editor/index.d.ts +1 -1
  35. package/dist/editor/index.js +1 -1
  36. package/dist/helpers/workflowEditorHelper.d.ts +15 -0
  37. package/dist/helpers/workflowEditorHelper.js +9 -0
  38. package/dist/index.d.ts +1 -0
  39. package/dist/messages/defaults.d.ts +100 -0
  40. package/dist/messages/defaults.js +91 -1
  41. package/dist/services/draftStorage.d.ts +24 -10
  42. package/dist/services/draftStorage.js +60 -35
  43. package/dist/services/globalSave.d.ts +28 -10
  44. package/dist/services/globalSave.js +135 -31
  45. package/dist/services/impactGate.d.ts +34 -0
  46. package/dist/services/impactGate.js +70 -0
  47. package/dist/services/impactService.d.ts +28 -0
  48. package/dist/services/impactService.js +71 -0
  49. package/dist/services/toastQueue.d.ts +9 -0
  50. package/dist/services/toastService.d.ts +4 -0
  51. package/dist/services/toastService.js +9 -3
  52. package/dist/services/workflowLaunchService.js +3 -1
  53. package/dist/settings/index.d.ts +2 -2
  54. package/dist/settings/index.js +1 -1
  55. package/dist/stores/doctorStore.svelte.d.ts +24 -1
  56. package/dist/stores/doctorStore.svelte.js +105 -2
  57. package/dist/stores/instanceContainer.svelte.d.ts +16 -0
  58. package/dist/stores/instanceContainer.svelte.js +22 -2
  59. package/dist/stores/saveConflictStore.svelte.d.ts +62 -0
  60. package/dist/stores/saveConflictStore.svelte.js +169 -0
  61. package/dist/stores/workflowStore.svelte.d.ts +7 -3
  62. package/dist/stores/workflowStore.svelte.js +14 -5
  63. package/dist/styles/toast.css +10 -1
  64. package/dist/svelte-app.d.ts +2 -0
  65. package/dist/svelte-app.js +74 -2
  66. package/dist/types/doctor.d.ts +3 -1
  67. package/dist/types/events.d.ts +20 -0
  68. package/dist/types/events.js +2 -0
  69. package/dist/types/impact.d.ts +25 -0
  70. package/dist/types/impact.js +7 -0
  71. package/dist/types/settings.d.ts +31 -0
  72. package/dist/types/settings.js +132 -0
  73. package/dist/utils/draftRestore.d.ts +27 -0
  74. package/dist/utils/draftRestore.js +36 -0
  75. package/dist/utils/interfaceTags.js +4 -1
  76. package/dist/utils/nodeSearch.d.ts +10 -0
  77. package/dist/utils/nodeSearch.js +37 -0
  78. package/dist/utils/runOffer.d.ts +21 -0
  79. package/dist/utils/runOffer.js +13 -0
  80. package/dist/utils/workflowCompare.d.ts +35 -0
  81. package/dist/utils/workflowCompare.js +84 -0
  82. package/dist/utils/workflowInterface.d.ts +26 -1
  83. package/dist/utils/workflowInterface.js +91 -11
  84. package/package.json +3 -2
@@ -31,6 +31,7 @@
31
31
 
32
32
  <script lang="ts">
33
33
  import Icon from '@iconify/svelte';
34
+ import { SvelteSet } from 'svelte/reactivity';
34
35
  import Button from './primitives/Button.svelte';
35
36
  import { m } from '../messages/index.js';
36
37
  import WorkflowInterfaceEntryCard from './WorkflowInterfaceEntryCard.svelte';
@@ -54,7 +55,8 @@
54
55
  validateWorkflowInterface,
55
56
  type InterfaceIssue,
56
57
  type RankedBindablePort,
57
- type ResolvedInterfaceEntry
58
+ type ResolvedInterfaceEntry,
59
+ nodeCanvasLabel
58
60
  } from '../utils/workflowInterface.js';
59
61
 
60
62
  interface Props {
@@ -166,7 +168,7 @@
166
168
  const edge = workflow.edges.find((e) => e.targetHandle === handleId);
167
169
  if (!edge) return undefined;
168
170
  const source = workflow.nodes.find((n) => n.id === edge.source);
169
- return source?.data?.label ?? edge.source;
171
+ return source ? nodeCanvasLabel(source) : edge.source;
170
172
  }
171
173
 
172
174
  /**
@@ -188,6 +190,9 @@
188
190
  */
189
191
  let rowIdSeq = 0;
190
192
 
193
+ /** Row ids of entries appended this session; their cards start open. */
194
+ const addedRowIds = new SvelteSet<string>();
195
+
191
196
  function mintRowId(): string {
192
197
  rowIdSeq += 1;
193
198
  return `row-${rowIdSeq}`;
@@ -282,7 +287,9 @@
282
287
  function appendEntry(direction: Direction, entry: WorkflowInterfaceEntry): void {
283
288
  // A row id of its own, so adding an entry leaves every other card — and
284
289
  // every other card's disclosure — exactly as the author left it.
285
- rowIds[direction] = [...rowIds[direction], mintRowId()];
290
+ const addedId = mintRowId();
291
+ addedRowIds.add(addedId);
292
+ rowIds[direction] = [...rowIds[direction], addedId];
286
293
  commit(direction, [...entriesFor(direction), entry]);
287
294
  composerFor = null;
288
295
  }
@@ -298,7 +305,9 @@
298
305
  direction,
299
306
  entryFromBindablePort(
300
307
  candidate,
301
- entriesFor(direction).map((entry) => entry.id)
308
+ entriesFor(direction).map((entry) => entry.id),
309
+ workflow,
310
+ entryDirectionOf(direction)
302
311
  )
303
312
  );
304
313
  }
@@ -412,6 +421,7 @@
412
421
  : undefined}
413
422
  {onOpenPlaygroundSettings}
414
423
  turnSelector={workflow.playground === undefined}
424
+ initiallyOpen={addedRowIds.has(rowIds[section.key][index] ?? '')}
415
425
  isFirst={index === 0}
416
426
  isLast={index === list.length - 1}
417
427
  onPatch={(patch: Partial<WorkflowInterfaceEntry>) =>
@@ -47,7 +47,8 @@
47
47
  turnsFor,
48
48
  type RankedBindablePort,
49
49
  type InterfaceIssue,
50
- type ResolvedInterfaceEntry
50
+ type ResolvedInterfaceEntry,
51
+ nodeCanvasLabel
51
52
  } from '../utils/workflowInterface.js';
52
53
 
53
54
  interface Props {
@@ -81,6 +82,8 @@
81
82
  * up. With settings, a stored `turn` shows as a deprecated chip instead.
82
83
  */
83
84
  turnSelector?: boolean;
85
+ /** Open the secondary fields from the start (a row the author just added). */
86
+ initiallyOpen?: boolean;
84
87
  isFirst: boolean;
85
88
  isLast: boolean;
86
89
  onPatch: (patch: Partial<WorkflowInterfaceEntry>) => void;
@@ -101,6 +104,7 @@
101
104
  turnTakenBy,
102
105
  onOpenPlaygroundSettings,
103
106
  turnSelector = false,
107
+ initiallyOpen = false,
104
108
  isFirst,
105
109
  isLast,
106
110
  onPatch,
@@ -116,7 +120,9 @@
116
120
  */
117
121
  // The seed is meant to be read once.
118
122
  // svelte-ignore state_referenced_locally
119
- let fieldsOpen = $state(status?.status === 'type-mismatch' || turnTakenBy !== undefined);
123
+ let fieldsOpen = $state(
124
+ initiallyOpen || status?.status === 'type-mismatch' || turnTakenBy !== undefined
125
+ );
120
126
 
121
127
  /** Statuses still explained in the footer (the rest render inline or as the dot). */
122
128
  const FOOTER_STATUSES = new Set(['unbound', 'dangling', 'hidden', 'over-bound']);
@@ -345,7 +351,7 @@
345
351
  ></span>
346
352
  <span class="wf-interface__binding-path">
347
353
  <span class="wf-interface__binding-node">
348
- {boundTarget.node.data?.label ?? boundTarget.node.id}
354
+ {nodeCanvasLabel(boundTarget.node)}
349
355
  </span>
350
356
  <Icon icon="heroicons:chevron-right" />
351
357
  <span class="wf-interface__binding-port">{boundTarget.port.name}</span>
@@ -374,6 +380,11 @@
374
380
  {turnLabel}
375
381
  </span>
376
382
  {/if}
383
+ {#if isInput && !entry.name && !fieldsOpen}
384
+ <span class="wf-interface__turn-chip" data-testid="wf-entry-no-title">
385
+ {m().workflowInterface.noTitle}
386
+ </span>
387
+ {/if}
377
388
  <Menu
378
389
  size="sm"
379
390
  align="end"
@@ -521,6 +532,11 @@
521
532
  <option value={option.id}>{option.name}</option>
522
533
  {/each}
523
534
  </Select>
535
+ {#if isInput && entry.dataType === 'mixed'}
536
+ <span class="wf-interface__inline wf-interface__inline--warning">
537
+ {m().workflowInterface.mixedInputHint}
538
+ </span>
539
+ {/if}
524
540
  {#if status?.status === 'type-mismatch' && boundPortType}
525
541
  <span class="wf-interface__inline wf-interface__inline--warning">
526
542
  {m().workflowInterface.typeMismatchInline({ portType: boundPortType ?? '' })}
@@ -32,6 +32,8 @@ interface Props {
32
32
  * up. With settings, a stored `turn` shows as a deprecated chip instead.
33
33
  */
34
34
  turnSelector?: boolean;
35
+ /** Open the secondary fields from the start (a row the author just added). */
36
+ initiallyOpen?: boolean;
35
37
  isFirst: boolean;
36
38
  isLast: boolean;
37
39
  onPatch: (patch: Partial<WorkflowInterfaceEntry>) => void;
@@ -315,7 +315,7 @@
315
315
  data-fd-port-type={pin.port.dataType}
316
316
  aria-label={pin.direction === 'input' ? graph.execIn : graph.execOut}
317
317
  style="top: {pin.y}px; transform: translateY(-50%);"
318
- tabindex={-1}
318
+ tabindex={selected ? 0 : -1}
319
319
  onmouseenter={(e: Event) => showPortTip(e, pin.port, pin.direction, false, true)}
320
320
  onmouseleave={hideTip}
321
321
  onfocus={(e: Event) => showPortTip(e, pin.port, pin.direction, false, true)}
@@ -361,7 +361,7 @@
361
361
  ? graph.connectInputPort({ name: port.name })
362
362
  : graph.connectOutputPort({ name: port.name })}
363
363
  style="top: {item.y}px; transform: translateY(-50%); --_c: {portColor};"
364
- tabindex={-1}
364
+ tabindex={selected ? 0 : -1}
365
365
  onmouseenter={(e: Event) => showPortTip(e, port, item.direction, open, false)}
366
366
  onmouseleave={hideTip}
367
367
  onfocus={(e: Event) => showPortTip(e, port, item.direction, open, false)}
@@ -29,7 +29,10 @@
29
29
  /** Why it happened, one short paragraph. */
30
30
  body?: string;
31
31
  details?: readonly string[];
32
+ /** Single action; kept for callers outside the library. */
32
33
  action?: ToastAction;
34
+ /** Follow-up steps, shown after `action`. */
35
+ actions?: readonly ToastAction[];
33
36
  kind?: ToastKind;
34
37
  dismissible?: boolean;
35
38
  }
@@ -40,13 +43,23 @@
40
43
  body,
41
44
  details = [],
42
45
  action,
46
+ actions = [],
43
47
  kind = 'info',
44
48
  dismissible = true
45
49
  }: Props = $props();
46
50
 
47
- function runAction(): void {
48
- action?.onClick();
49
- toastApi.dismiss(toast.id);
51
+ const all = $derived([...(action ? [action] : []), ...actions]);
52
+ // The main action is the one marked `primary`, else the first.
53
+ const mainIndex = $derived(
54
+ Math.max(
55
+ 0,
56
+ all.findIndex((a) => a.primary)
57
+ )
58
+ );
59
+
60
+ function run(item: ToastAction): void {
61
+ item.onClick();
62
+ if (!item.keepOpen) toastApi.dismiss(toast.id);
50
63
  }
51
64
  </script>
52
65
 
@@ -88,9 +101,15 @@
88
101
  {/each}
89
102
  </ul>
90
103
  {/if}
91
- {#if action}
92
- <div class="flowdrop-toast-actions">
93
- <Button variant="ghost" size="sm" onclick={runAction}>{action.label}</Button>
104
+ {#if all.length}
105
+ <div class="flowdrop-toast-actions" class:flowdrop-toast-actions--multi={all.length > 1}>
106
+ {#each all as item, i (i)}
107
+ <Button
108
+ variant={all.length === 1 ? 'ghost' : i === mainIndex ? 'primary' : 'secondary'}
109
+ size="sm"
110
+ onclick={() => run(item)}>{item.label}</Button
111
+ >
112
+ {/each}
94
113
  </div>
95
114
  {/if}
96
115
  </div>
@@ -25,7 +25,10 @@ interface Props {
25
25
  /** Why it happened, one short paragraph. */
26
26
  body?: string;
27
27
  details?: readonly string[];
28
+ /** Single action; kept for callers outside the library. */
28
29
  action?: ToastAction;
30
+ /** Follow-up steps, shown after `action`. */
31
+ actions?: readonly ToastAction[];
29
32
  kind?: ToastKind;
30
33
  dismissible?: boolean;
31
34
  }
@@ -51,6 +51,13 @@ export interface EndpointConfig {
51
51
  * the editor applies as one undoable edit. Needs `diagnose`.
52
52
  */
53
53
  remedy?: string;
54
+ /**
55
+ * Impact check before save (`POST`, body = the workflow as the editor
56
+ * would save it, `{id}` = the saved workflow id). Answers `{ success,
57
+ * data: { confirm, interface, renames, items } }`. A backend without it
58
+ * omits the key and the editor saves without asking.
59
+ */
60
+ impact?: string;
54
61
  };
55
62
  executions: {
56
63
  execute: string;
@@ -28,7 +28,8 @@ export const defaultEndpointConfig = {
28
28
  // Singular `workflow` here is the reference backend's spelling, not a typo.
29
29
  run: '/workflow/{workflowId}/run',
30
30
  diagnose: '/workflow/{id}/diagnose',
31
- remedy: '/workflow/{id}/remedy'
31
+ remedy: '/workflow/{id}/remedy',
32
+ impact: '/workflow/{id}/impact'
32
33
  },
33
34
  executions: {
34
35
  execute: '/workflows/{id}/execute',
@@ -7,6 +7,9 @@
7
7
  * wire is a valid target (the pick adds another); a pair that is already wired
8
8
  * is marked and picking it does nothing.
9
9
  *
10
+ * Trigger pins and data ports never count as compatible with each other: they
11
+ * are listed, but under "Other types".
12
+ *
10
13
  * @module editor/connectCandidates
11
14
  */
12
15
  import type { NodePort, Workflow, WorkflowEdge } from '../types/index.js';
@@ -7,6 +7,9 @@
7
7
  * wire is a valid target (the pick adds another); a pair that is already wired
8
8
  * is marked and picking it does nothing.
9
9
  *
10
+ * Trigger pins and data ports never count as compatible with each other: they
11
+ * are listed, but under "Other types".
12
+ *
10
13
  * @module editor/connectCandidates
11
14
  */
12
15
  import { v4 as uuidv4 } from 'uuid';
@@ -14,7 +17,7 @@ import { ProximityConnectHelper } from '../helpers/proximityConnect.js';
14
17
  import { buildHandleId } from '../utils/handleIds.js';
15
18
  import { isPortVisible } from '../utils/portUtils.js';
16
19
  import { isTriggerEventInput } from '../utils/reservedPorts.js';
17
- import { nodeCanvasLabel } from '../utils/workflowInterface.js';
20
+ import { disambiguateLabels, nodeCanvasLabel } from '../utils/workflowInterface.js';
18
21
  import { defaultMessages } from '../messages/defaults.js';
19
22
  /** A stable key for a candidate, `nodeId::portId`. */
20
23
  export function connectCandidateKey(candidate) {
@@ -49,6 +52,7 @@ export function canConnectFrom(workflow, target) {
49
52
  */
50
53
  export function listConnectCandidates(workflow, checker, target) {
51
54
  const groups = { compatible: [], other: [] };
55
+ const found = [];
52
56
  const origin = resolveOrigin(workflow, target);
53
57
  if (!origin)
54
58
  return groups;
@@ -75,9 +79,11 @@ export function listConnectCandidates(workflow, checker, target) {
75
79
  edge.sourceHandle === handle &&
76
80
  edge.target === target.nodeId &&
77
81
  edge.targetHandle === originHandle);
78
- const compatible = fromOutput
79
- ? checker.areDataTypesCompatible(origin.port.dataType, port.dataType)
80
- : checker.areDataTypesCompatible(port.dataType, origin.port.dataType);
82
+ const sameKind = (origin.port.dataType === 'trigger') === (port.dataType === 'trigger');
83
+ const compatible = sameKind &&
84
+ (fromOutput
85
+ ? checker.areDataTypesCompatible(origin.port.dataType, port.dataType)
86
+ : checker.areDataTypesCompatible(port.dataType, origin.port.dataType));
81
87
  const candidate = {
82
88
  nodeId: node.id,
83
89
  nodeLabel: nodeCanvasLabel(node),
@@ -86,9 +92,12 @@ export function listConnectCandidates(workflow, checker, target) {
86
92
  wired,
87
93
  connected
88
94
  };
89
- (compatible ? groups.compatible : groups.other).push(candidate);
95
+ found.push(candidate);
90
96
  }
91
97
  }
98
+ for (const candidate of disambiguateLabels(found)) {
99
+ (candidate.compatible ? groups.compatible : groups.other).push(candidate);
100
+ }
92
101
  return groups;
93
102
  }
94
103
  /** The edge a pick makes. The source is always the output side. Styling is left to the editor. */
@@ -81,7 +81,7 @@ export { globalSaveWorkflow, globalExportWorkflow } from '../services/globalSave
81
81
  export { fetchPortConfig, validatePortConfig } from '../services/portConfigApi.js';
82
82
  export { fetchCategories, validateCategories } from '../services/categoriesApi.js';
83
83
  export { fetchDynamicSchema, resolveExternalEditUrl, getEffectiveConfigEditOptions, clearSchemaCache, invalidateSchemaCache, hasConfigEditOptions, shouldShowExternalEdit, shouldUseDynamicSchema } from '../services/dynamicSchemaService.js';
84
- export { getDraftStorageKey, saveDraft, loadDraft, deleteDraft, hasDraft, getDraftMetadata, clearAllDrafts, setDraftStorage, getDraftStorage, resolveDraftStorage, DraftAutoSaveManager } from '../services/draftStorage.js';
84
+ export { getDraftStorageKey, saveDraft, loadDraft, draftFingerprint, deleteDraft, hasDraft, getDraftMetadata, clearAllDrafts, setDraftStorage, getDraftStorage, resolveDraftStorage, DraftAutoSaveManager } from '../services/draftStorage.js';
85
85
  export type { DraftStorageAdapter, DraftStorageType, DraftStorageOption } from '../services/draftStorage.js';
86
86
  export { EnhancedFlowDropApiClient, ApiError, parseApiErrorBody, errorDetails } from '../api/enhanced-client.js';
87
87
  export { isLoopbackEdge, isValidLoopbackCycle, PortCompatibilityChecker, getPossibleConnections, validateConnection, getConnectionSuggestions, hasCycles, hasInvalidCycles, getExecutionOrder } from '../utils/connections.js';
@@ -116,7 +116,7 @@ export { globalSaveWorkflow, globalExportWorkflow } from '../services/globalSave
116
116
  export { fetchPortConfig, validatePortConfig } from '../services/portConfigApi.js';
117
117
  export { fetchCategories, validateCategories } from '../services/categoriesApi.js';
118
118
  export { fetchDynamicSchema, resolveExternalEditUrl, getEffectiveConfigEditOptions, clearSchemaCache, invalidateSchemaCache, hasConfigEditOptions, shouldShowExternalEdit, shouldUseDynamicSchema } from '../services/dynamicSchemaService.js';
119
- export { getDraftStorageKey, saveDraft, loadDraft, deleteDraft, hasDraft, getDraftMetadata, clearAllDrafts, setDraftStorage, getDraftStorage, resolveDraftStorage, DraftAutoSaveManager } from '../services/draftStorage.js';
119
+ export { getDraftStorageKey, saveDraft, loadDraft, draftFingerprint, deleteDraft, hasDraft, getDraftMetadata, clearAllDrafts, setDraftStorage, getDraftStorage, resolveDraftStorage, DraftAutoSaveManager } from '../services/draftStorage.js';
120
120
  // ============================================================================
121
121
  // API Clients
122
122
  // ============================================================================
@@ -145,6 +145,21 @@ export declare class WorkflowOperationsHelper {
145
145
  */
146
146
  static checkWorkflowHasAnyCycles(nodes: WorkflowNodeType[], edges: WorkflowEdge[]): boolean;
147
147
  }
148
+ /**
149
+ * Where a node added from the palette lands: to the right of the selected
150
+ * node, else the middle of the visible canvas.
151
+ */
152
+ export declare function placementForNewNode(selected: {
153
+ x: number;
154
+ y: number;
155
+ width: number;
156
+ } | null, viewportCentre: {
157
+ x: number;
158
+ y: number;
159
+ }, gap: number): {
160
+ x: number;
161
+ y: number;
162
+ };
148
163
  /**
149
164
  * Configuration helper
150
165
  */
@@ -412,6 +412,15 @@ export class WorkflowOperationsHelper {
412
412
  return hasCycles(nodes, edges);
413
413
  }
414
414
  }
415
+ /**
416
+ * Where a node added from the palette lands: to the right of the selected
417
+ * node, else the middle of the visible canvas.
418
+ */
419
+ export function placementForNewNode(selected, viewportCentre, gap) {
420
+ if (!selected)
421
+ return { x: viewportCentre.x, y: viewportCentre.y };
422
+ return { x: selected.x + selected.width + gap, y: selected.y };
423
+ }
415
424
  /**
416
425
  * Configuration helper
417
426
  */
package/dist/index.d.ts CHANGED
@@ -39,4 +39,5 @@ export type { AuthProvider } from './types/auth.js';
39
39
  export type { FlowDropInstance } from './stores/instanceContainer.svelte.js';
40
40
  export type { FlowDropMountOptions, MountedFlowDropApp, RunCommandOptions } from './svelte-app.js';
41
41
  export type { FlowDropEventHandlers } from './types/events.js';
42
+ export type { ImpactSeverity, ImpactItem, ImpactReport } from './types/impact.js';
42
43
  export type { Messages, MessagesOverride } from './messages/index.js';
@@ -272,6 +272,7 @@ export declare const defaultMessages: {
272
272
  readonly tagline: "Visual Workflow Manager";
273
273
  readonly breadcrumbAriaLabel: "Breadcrumb";
274
274
  readonly connected: "Connected";
275
+ readonly unsavedChanges: "Unsaved changes";
275
276
  readonly settingsTitle: "Settings";
276
277
  readonly settingsAriaLabel: "Open settings";
277
278
  readonly appearance: {
@@ -436,6 +437,24 @@ export declare const defaultMessages: {
436
437
  readonly optionCurrent: "current";
437
438
  readonly optionTaken: "already taken";
438
439
  };
440
+ readonly runButton: {
441
+ readonly label: "Run";
442
+ readonly title: "Run this workflow";
443
+ readonly failed: "The run could not be started.";
444
+ readonly queued: "The run is queued. It starts when the site's queue runs (cron).";
445
+ };
446
+ readonly runInputsDialog: {
447
+ readonly title: ({ name }: {
448
+ name: string;
449
+ }) => string;
450
+ readonly close: "Close the run form";
451
+ readonly missing: ({ names }: {
452
+ names: string;
453
+ }) => string;
454
+ readonly invalid: ({ names }: {
455
+ names: string;
456
+ }) => string;
457
+ };
439
458
  readonly runBar: {
440
459
  readonly label: "Run";
441
460
  readonly running: "Running";
@@ -447,6 +466,8 @@ export declare const defaultMessages: {
447
466
  readonly stopLabel: "Stop the run";
448
467
  readonly open: "Open";
449
468
  readonly openLabel: "Open the run in Test mode";
469
+ readonly openRun: "Open run";
470
+ readonly openRunTitle: "Open the run page";
450
471
  readonly askAssistant: "Ask the Assistant";
451
472
  readonly askAssistantLabel: "Ask the Assistant about this run";
452
473
  readonly announce: {
@@ -462,6 +483,10 @@ export declare const defaultMessages: {
462
483
  count: number;
463
484
  }) => string;
464
485
  readonly triggerTitle: "Problems found in this workflow";
486
+ readonly checking: "Checking...";
487
+ readonly unavailable: "Check unavailable";
488
+ readonly unavailableTitle: "The problem check could not run. It tries again after your next change.";
489
+ readonly retry: "Retry";
465
490
  readonly title: "Problems";
466
491
  readonly listLabel: "Problems in this workflow";
467
492
  readonly severity: {
@@ -499,6 +524,10 @@ export declare const defaultMessages: {
499
524
  }) => string;
500
525
  };
501
526
  readonly dismissNotice: "Dismiss";
527
+ readonly autoDone: ({ label }: {
528
+ label: string;
529
+ }) => string;
530
+ readonly undo: "Undo";
502
531
  };
503
532
  readonly runsList: {
504
533
  readonly trigger: "Runs";
@@ -587,8 +616,12 @@ export declare const defaultMessages: {
587
616
  };
588
617
  readonly layout: {
589
618
  readonly componentsSidebar: "Components sidebar";
619
+ readonly addNode: ({ name }: {
620
+ name: string;
621
+ }) => string;
590
622
  readonly nodesTab: "Nodes";
591
623
  readonly workflowCanvas: "Workflow canvas";
624
+ readonly skipToCanvas: "Skip to the canvas";
592
625
  readonly executionLogs: "Execution logs sidebar";
593
626
  readonly settingsCategories: "Settings categories";
594
627
  readonly zoomLevelsTitle: "Zoom levels";
@@ -1188,6 +1221,8 @@ export declare const defaultMessages: {
1188
1221
  readonly descriptionLabel: "Description";
1189
1222
  readonly dataTypeLabel: "Data type";
1190
1223
  readonly dataTypePlaceholder: "Select a data type…";
1224
+ readonly mixedInputHint: "Callers can send anything. Pick a type so forms can ask for it properly.";
1225
+ readonly noTitle: "No title";
1191
1226
  readonly namePlaceholder: "Defaults to ID";
1192
1227
  readonly typeMismatchInline: ({ portType }: {
1193
1228
  portType: string;
@@ -1334,6 +1369,22 @@ export declare const defaultMessages: {
1334
1369
  }) => string;
1335
1370
  };
1336
1371
  };
1372
+ readonly impact: {
1373
+ readonly title: "Before you save";
1374
+ readonly breaks: "This change breaks";
1375
+ readonly changes: "This change also does";
1376
+ readonly info: "Also good to know";
1377
+ readonly severity: {
1378
+ readonly breaks: "Breaks";
1379
+ readonly changes: "Changes";
1380
+ readonly info: "Info";
1381
+ };
1382
+ readonly failed: ({ message }: {
1383
+ message: string;
1384
+ }) => string;
1385
+ readonly cancel: "Cancel";
1386
+ readonly save: "Save anyway";
1387
+ };
1337
1388
  readonly webmcp: {
1338
1389
  readonly bridge: {
1339
1390
  readonly trigger: "Desktop bridge";
@@ -1406,6 +1457,14 @@ export declare const defaultMessages: {
1406
1457
  readonly failed: "Failed";
1407
1458
  readonly skipped: "Skipped";
1408
1459
  };
1460
+ readonly drafts: {
1461
+ readonly found: ({ time }: {
1462
+ time: string;
1463
+ }) => string;
1464
+ readonly savedSince: "The workflow was saved after this draft. Restoring puts your draft over that version.";
1465
+ readonly restore: "Restore";
1466
+ readonly discard: "Discard";
1467
+ };
1409
1468
  readonly composer: {
1410
1469
  readonly placeholder: "Type a message";
1411
1470
  readonly send: "Send";
@@ -1433,4 +1492,45 @@ export declare const defaultMessages: {
1433
1492
  readonly hintChoose: "choose";
1434
1493
  readonly hintClose: "close";
1435
1494
  };
1495
+ readonly autoSave: {
1496
+ readonly waiting: "Autosave is waiting: this change affects what uses the workflow. Press Save to review it.";
1497
+ };
1498
+ readonly compare: {
1499
+ readonly title: "Your version and the saved version";
1500
+ readonly onlyMine: "Only in yours";
1501
+ readonly onlyTheirs: "Only in the saved version";
1502
+ readonly changedInBoth: "Different in the two versions";
1503
+ readonly none: "No differences in the workflow itself";
1504
+ readonly keepMine: "Keep mine";
1505
+ readonly loadTheirs: "Load saved version";
1506
+ readonly cancel: "Cancel";
1507
+ readonly stepOnly: ({ label }: {
1508
+ label: string;
1509
+ }) => string;
1510
+ readonly stepSettings: ({ label }: {
1511
+ label: string;
1512
+ }) => string;
1513
+ readonly stepLabel: ({ label }: {
1514
+ label: string;
1515
+ }) => string;
1516
+ readonly stepPosition: ({ label }: {
1517
+ label: string;
1518
+ }) => string;
1519
+ readonly wiresOnly: ({ n }: {
1520
+ n: number;
1521
+ }) => string;
1522
+ readonly name: ({ mine, theirs }: {
1523
+ mine: string;
1524
+ theirs: string;
1525
+ }) => string;
1526
+ readonly description: "Workflow description changed";
1527
+ readonly interface: "Workflow interface changed";
1528
+ readonly chat: "Chat settings changed";
1529
+ };
1530
+ readonly saveConflict: {
1531
+ readonly title: "Someone saved this workflow after you opened it.";
1532
+ readonly body: "Your changes are not saved yet.";
1533
+ readonly compare: "Compare";
1534
+ readonly noRevision: "Could not read the saved version, so your changes were not sent.";
1535
+ };
1436
1536
  };