@lace-cloud/canvas 0.28.0 → 0.30.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/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
2
- export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
2
+ export { CanvasArrangement, CanvasView, Conflict, Diagnostic, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
3
3
  export { Toast } from '@lace-cloud/ui/feedback';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as React from 'react';
6
6
  import React__default, { FC, ReactNode } from 'react';
7
- import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as Bundle, E as EdgeRef, k as ActionRunner, L as LayoutHandle } from './registry-LzXZx20m.mjs';
8
- export { l as ActionIcon, m as ActionRunnerOptions, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, r as BridgeEngineCaller, s as Busy, t as COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, Q as ContextKey, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, X as EditorBinding, Y as EditorEnv, Z as EditorEnvExtras, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, aa as Invocation, ab as KeySpec, ac as Placement, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, ao as RunCtx, ap as RunOutcome, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, aO as disabledReason, aP as foldReport, aQ as isBoundPath, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, aV as reportDiagnostics, aW as resolveContributions, aX as rowActions, aY as toArgv, aZ as uniqueDiagnostics } from './registry-LzXZx20m.mjs';
7
+ import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as Bundle, k as CanvasSelection, l as ActionRunner, L as LayoutHandle } from './registry-C8fUGD44.mjs';
8
+ export { m as ActionIcon, n as ActionRunnerOptions, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, s as BridgeEngineCaller, t as Busy, u as COMMANDS, v as ClipboardStore, w as CommandBinding, x as CommandDetachedError, y as CommandExitError, z as CommandFailure, E as CommandPath, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, Q as ContextKey, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, X as EditorBinding, Y as EditorEnv, Z as EditorEnvExtras, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GENERATE_STAGES, a7 as GateChangeRequest, a8 as GenerateEvent, a9 as GenerateStage, aa as GeneratedTree, ab as GraphError, ac as HostBinding, ad as Invocation, ae as KeySpec, af as Placement, ag as PortName, ah as PresenterPort, ai as PreviewOutcome, aj as PreviewSlot, ak as Reason, al as ReportEntry, am as ReportFold, an as ReportPath, ao as ReportSlot, ap as ResultKind, aq as ResultSlots, ar as RunCtx, as as RunOutcome, at as RunSlot, au as RunnerPorts, av as RunningMark, aw as SCHEMAS, ax as Sink, ay as SinkInput, az as SlotContext, aA as SlotKind, aB as SourceConflict, aC as StackRef, aD as Started, aE as ViewStatePort, aF as WiringCandidate, aG as WiringQuery, aH as answering, aI as bridgeCaller, aJ as carriesFailure, aK as commandUnderWay, aL as connectCaller, aM as createActionRunner, aN as createResultStore, aO as currentReport, aP as defineCommand, aQ as diagnosticsOf, aR as disabledReason, aS as foldReport, aT as generatedTree, aU as isBoundPath, aV as openEngineCommands, aW as openEngineSession, aX as parseBound, aY as parseCommandFailure, aZ as reportDiagnostics, a_ as resolveContributions, a$ as rowActions, b0 as toArgv, b1 as uniqueDiagnostics } from './registry-C8fUGD44.mjs';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -51,6 +51,16 @@ type SnapshotSourceInput = {
51
51
  */
52
52
  headers?: Record<string, string>;
53
53
  };
54
+ /**
55
+ * The error of the `failed` end a snapshot source reports when the server
56
+ * answered its fetch with a failure: `status` is that answer's HTTP status, as
57
+ * data, so a host words the failure by it and never by the message. A fetch no
58
+ * response answered ends with the transport's own error.
59
+ */
60
+ declare class SnapshotFetchError extends Error {
61
+ readonly status: number;
62
+ constructor(status: number);
63
+ }
54
64
  declare function snapshotSource(input: SnapshotSourceInput): SourcePort;
55
65
 
56
66
  type Props$8 = {
@@ -71,10 +81,11 @@ type ContextMenuState = {
71
81
  type Props$7 = {
72
82
  contextMenu: ContextMenuState;
73
83
  actions: readonly ActionContribution[];
84
+ disabledReason: (action: ActionContribution) => string | undefined;
74
85
  onRun: (action: ActionContribution) => void;
75
86
  onDismiss: () => void;
76
87
  };
77
- declare function ContextMenu({ contextMenu, actions, onRun, onDismiss }: Props$7): react_jsx_runtime.JSX.Element | null;
88
+ declare function ContextMenu({ contextMenu, actions, disabledReason, onRun, onDismiss, }: Props$7): react_jsx_runtime.JSX.Element | null;
78
89
 
79
90
  type ErrorStateProps = {
80
91
  message: string;
@@ -137,10 +148,10 @@ type ModuleNodeData = RenderNode & {
137
148
  /** Badges the diagnostics decoration attached to this node — tone
138
149
  * `'error'` drives the error border/title. `RenderNode` carries no
139
150
  * error state of its own; a node's error styling comes only from its
140
- * decoration badges. The same field name and chip shape GroupNode's own
141
- * `badges` renders — a badge addressed to a collapsed group's own id
142
- * (nodeIdForAddress can return a group id) is not a ModuleNode concern
143
- * either way. */
151
+ * decoration badges. The same field GroupNode's own `badges` is, both
152
+ * drawn by the badge row every card draws (`BadgeRow`) — a badge
153
+ * addressed to a collapsed group's own id (nodeIdForAddress can return a
154
+ * group id) is not a ModuleNode concern either way. */
144
155
  badges?: readonly Badge[];
145
156
  /** What the engine found on this node's inputs, by input name — the
146
157
  * decoration's `pins`. */
@@ -171,19 +182,16 @@ type ContentProps$3 = {
171
182
  onSave: (locals: LocalEntry[]) => void | Promise<void>;
172
183
  };
173
184
  declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
174
- type Props$5 = {
175
- locals: LocalEntry[] | undefined;
176
- onSave: (locals: LocalEntry[]) => void | Promise<void>;
185
+ type Props$5 = ContentProps$3 & {
177
186
  onClose: () => void;
178
187
  };
179
- declare function LocalsPanel({ locals, onSave, onClose }: Props$5): react_jsx_runtime.JSX.Element;
188
+ declare function LocalsPanel({ onClose, ...content }: Props$5): react_jsx_runtime.JSX.Element;
180
189
 
181
190
  type Props$4 = {
182
191
  instance_id: string;
183
192
  onClose: () => void;
184
- onModified?: (instanceId: string) => void;
185
193
  };
186
- declare function ModuleConfigPanel({ instance_id, onClose, onModified }: Props$4): react_jsx_runtime.JSX.Element;
194
+ declare function ModuleConfigPanel({ instance_id, onClose }: Props$4): react_jsx_runtime.JSX.Element;
187
195
 
188
196
  type VariableDef = {
189
197
  name: string;
@@ -313,14 +321,8 @@ type CanvasContextValue = {
313
321
  editable: boolean;
314
322
  arrangement: CanvasArrangement;
315
323
  updateArrangement: (next: CanvasArrangement) => void;
316
- selection: {
317
- nodes: readonly string[];
318
- edge: EdgeRef | null;
319
- };
320
- setSelection: (next: {
321
- nodes: readonly string[];
322
- edge: EdgeRef | null;
323
- }) => void;
324
+ selection: CanvasSelection;
325
+ setSelection: (next: CanvasSelection) => void;
324
326
  runner: ActionRunner;
325
327
  layout: LayoutHandle;
326
328
  setSettingsOpen: (next: boolean) => void;
@@ -328,4 +330,4 @@ type CanvasContextValue = {
328
330
  declare const CanvasContext: React.Context<CanvasContextValue | null>;
329
331
  declare function useCanvas(): CanvasContextValue;
330
332
 
331
- export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
333
+ export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
2
- export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
2
+ export { CanvasArrangement, CanvasView, Conflict, Diagnostic, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
3
3
  export { Toast } from '@lace-cloud/ui/feedback';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as React from 'react';
6
6
  import React__default, { FC, ReactNode } from 'react';
7
- import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as Bundle, E as EdgeRef, k as ActionRunner, L as LayoutHandle } from './registry-LzXZx20m.js';
8
- export { l as ActionIcon, m as ActionRunnerOptions, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, r as BridgeEngineCaller, s as Busy, t as COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, Q as ContextKey, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, X as EditorBinding, Y as EditorEnv, Z as EditorEnvExtras, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, aa as Invocation, ab as KeySpec, ac as Placement, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, ao as RunCtx, ap as RunOutcome, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, aO as disabledReason, aP as foldReport, aQ as isBoundPath, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, aV as reportDiagnostics, aW as resolveContributions, aX as rowActions, aY as toArgv, aZ as uniqueDiagnostics } from './registry-LzXZx20m.js';
7
+ import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as Bundle, k as CanvasSelection, l as ActionRunner, L as LayoutHandle } from './registry-C8fUGD44.js';
8
+ export { m as ActionIcon, n as ActionRunnerOptions, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, s as BridgeEngineCaller, t as Busy, u as COMMANDS, v as ClipboardStore, w as CommandBinding, x as CommandDetachedError, y as CommandExitError, z as CommandFailure, E as CommandPath, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, Q as ContextKey, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, X as EditorBinding, Y as EditorEnv, Z as EditorEnvExtras, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GENERATE_STAGES, a7 as GateChangeRequest, a8 as GenerateEvent, a9 as GenerateStage, aa as GeneratedTree, ab as GraphError, ac as HostBinding, ad as Invocation, ae as KeySpec, af as Placement, ag as PortName, ah as PresenterPort, ai as PreviewOutcome, aj as PreviewSlot, ak as Reason, al as ReportEntry, am as ReportFold, an as ReportPath, ao as ReportSlot, ap as ResultKind, aq as ResultSlots, ar as RunCtx, as as RunOutcome, at as RunSlot, au as RunnerPorts, av as RunningMark, aw as SCHEMAS, ax as Sink, ay as SinkInput, az as SlotContext, aA as SlotKind, aB as SourceConflict, aC as StackRef, aD as Started, aE as ViewStatePort, aF as WiringCandidate, aG as WiringQuery, aH as answering, aI as bridgeCaller, aJ as carriesFailure, aK as commandUnderWay, aL as connectCaller, aM as createActionRunner, aN as createResultStore, aO as currentReport, aP as defineCommand, aQ as diagnosticsOf, aR as disabledReason, aS as foldReport, aT as generatedTree, aU as isBoundPath, aV as openEngineCommands, aW as openEngineSession, aX as parseBound, aY as parseCommandFailure, aZ as reportDiagnostics, a_ as resolveContributions, a$ as rowActions, b0 as toArgv, b1 as uniqueDiagnostics } from './registry-C8fUGD44.js';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -51,6 +51,16 @@ type SnapshotSourceInput = {
51
51
  */
52
52
  headers?: Record<string, string>;
53
53
  };
54
+ /**
55
+ * The error of the `failed` end a snapshot source reports when the server
56
+ * answered its fetch with a failure: `status` is that answer's HTTP status, as
57
+ * data, so a host words the failure by it and never by the message. A fetch no
58
+ * response answered ends with the transport's own error.
59
+ */
60
+ declare class SnapshotFetchError extends Error {
61
+ readonly status: number;
62
+ constructor(status: number);
63
+ }
54
64
  declare function snapshotSource(input: SnapshotSourceInput): SourcePort;
55
65
 
56
66
  type Props$8 = {
@@ -71,10 +81,11 @@ type ContextMenuState = {
71
81
  type Props$7 = {
72
82
  contextMenu: ContextMenuState;
73
83
  actions: readonly ActionContribution[];
84
+ disabledReason: (action: ActionContribution) => string | undefined;
74
85
  onRun: (action: ActionContribution) => void;
75
86
  onDismiss: () => void;
76
87
  };
77
- declare function ContextMenu({ contextMenu, actions, onRun, onDismiss }: Props$7): react_jsx_runtime.JSX.Element | null;
88
+ declare function ContextMenu({ contextMenu, actions, disabledReason, onRun, onDismiss, }: Props$7): react_jsx_runtime.JSX.Element | null;
78
89
 
79
90
  type ErrorStateProps = {
80
91
  message: string;
@@ -137,10 +148,10 @@ type ModuleNodeData = RenderNode & {
137
148
  /** Badges the diagnostics decoration attached to this node — tone
138
149
  * `'error'` drives the error border/title. `RenderNode` carries no
139
150
  * error state of its own; a node's error styling comes only from its
140
- * decoration badges. The same field name and chip shape GroupNode's own
141
- * `badges` renders — a badge addressed to a collapsed group's own id
142
- * (nodeIdForAddress can return a group id) is not a ModuleNode concern
143
- * either way. */
151
+ * decoration badges. The same field GroupNode's own `badges` is, both
152
+ * drawn by the badge row every card draws (`BadgeRow`) — a badge
153
+ * addressed to a collapsed group's own id (nodeIdForAddress can return a
154
+ * group id) is not a ModuleNode concern either way. */
144
155
  badges?: readonly Badge[];
145
156
  /** What the engine found on this node's inputs, by input name — the
146
157
  * decoration's `pins`. */
@@ -171,19 +182,16 @@ type ContentProps$3 = {
171
182
  onSave: (locals: LocalEntry[]) => void | Promise<void>;
172
183
  };
173
184
  declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
174
- type Props$5 = {
175
- locals: LocalEntry[] | undefined;
176
- onSave: (locals: LocalEntry[]) => void | Promise<void>;
185
+ type Props$5 = ContentProps$3 & {
177
186
  onClose: () => void;
178
187
  };
179
- declare function LocalsPanel({ locals, onSave, onClose }: Props$5): react_jsx_runtime.JSX.Element;
188
+ declare function LocalsPanel({ onClose, ...content }: Props$5): react_jsx_runtime.JSX.Element;
180
189
 
181
190
  type Props$4 = {
182
191
  instance_id: string;
183
192
  onClose: () => void;
184
- onModified?: (instanceId: string) => void;
185
193
  };
186
- declare function ModuleConfigPanel({ instance_id, onClose, onModified }: Props$4): react_jsx_runtime.JSX.Element;
194
+ declare function ModuleConfigPanel({ instance_id, onClose }: Props$4): react_jsx_runtime.JSX.Element;
187
195
 
188
196
  type VariableDef = {
189
197
  name: string;
@@ -313,14 +321,8 @@ type CanvasContextValue = {
313
321
  editable: boolean;
314
322
  arrangement: CanvasArrangement;
315
323
  updateArrangement: (next: CanvasArrangement) => void;
316
- selection: {
317
- nodes: readonly string[];
318
- edge: EdgeRef | null;
319
- };
320
- setSelection: (next: {
321
- nodes: readonly string[];
322
- edge: EdgeRef | null;
323
- }) => void;
324
+ selection: CanvasSelection;
325
+ setSelection: (next: CanvasSelection) => void;
324
326
  runner: ActionRunner;
325
327
  layout: LayoutHandle;
326
328
  setSettingsOpen: (next: boolean) => void;
@@ -328,4 +330,4 @@ type CanvasContextValue = {
328
330
  declare const CanvasContext: React.Context<CanvasContextValue | null>;
329
331
  declare function useCanvas(): CanvasContextValue;
330
332
 
331
- export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
333
+ export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };