@lace-cloud/canvas 0.19.0 → 0.21.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/README.md +3 -3
- package/dist/{AccordionSection-QHNIBNJT.css → AccordionSection-J3ALHB5M.css} +22 -12
- package/dist/{App-D7WF3TWZ.css → App-IFIOMNV7.css} +47 -33
- package/dist/Banner-4TSIKYLF.css +48 -0
- package/dist/{Canvas-J6F7YHEK.css → Canvas-JRY2HAY6.css} +0 -56
- package/dist/CanvasControls-L6Q2LX2P.css +47 -0
- package/dist/ContextMenu-C7SLX23S.css +74 -0
- package/dist/DiagnosticsPanel-T6VDHH4A.css +64 -0
- package/dist/Drawer-34ZYTEWE.css +62 -0
- package/dist/EdgeInspectorPanel-JD6CVUAT.css +45 -0
- package/dist/EmptyCanvas-QA2OV3T3.css +21 -0
- package/dist/GroupNode-QWSLBFCH.css +197 -0
- package/dist/Identifier-V6MZ37EG.css +4 -0
- package/dist/{ModuleConfigPanel-LZRL4F3Q.css → ModuleConfigPanel-LTPLEG2L.css} +29 -10
- package/dist/{ModuleNode-OJXMNOL3.css → ModuleNode-RRZ37SFM.css} +97 -27
- package/dist/PaperGrid-WFRL3N4P.css +25 -0
- package/dist/ToolbarAction-PQNWHJSU.css +36 -0
- package/dist/UpdateButton-TJKSFVBA.css +16 -0
- package/dist/{chunk-S2FFLFOT.mjs → chunk-W6U3TVQK.mjs} +106 -110
- package/dist/chunk-W6U3TVQK.mjs.map +1 -0
- package/dist/engine/index.cjs +83 -104
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +3 -5
- package/dist/engine/index.d.ts +3 -5
- package/dist/engine/index.mjs +1 -3
- package/dist/icons-SBZCWI5T.css +14 -0
- package/dist/index.cjs +10710 -10373
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -25
- package/dist/index.d.ts +35 -25
- package/dist/index.mjs +3026 -2641
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-BzX6r87C.d.mts → mapping-CopjG8Ae.d.mts} +59 -47
- package/dist/{mapping-BzX6r87C.d.ts → mapping-CopjG8Ae.d.ts} +59 -47
- package/dist/{panels-shared-OFOUQSUT.css → panels-shared-5JFNYXQ7.css} +47 -66
- package/package.json +3 -3
- package/dist/ConflictBanner-4V5K2QNU.css +0 -44
- package/dist/ContextMenu-EAQFLI5L.css +0 -46
- package/dist/DiagnosticsPanel-HB3JQYSY.css +0 -39
- package/dist/EdgeInspectorPanel-D536U5MZ.css +0 -54
- package/dist/GroupNode-XSB4OKGK.css +0 -150
- package/dist/Markers-XLREDZNM.css +0 -16
- package/dist/SourceRefusedBanner-5PXHEDHT.css +0 -23
- package/dist/chunk-S2FFLFOT.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
2
2
|
export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, 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,
|
|
8
|
-
export { m as
|
|
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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-CopjG8Ae.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 COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, M as ContextKey, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, W as EditorBinding, X as EditorEnv, Y as EditorEnvExtras, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GenerateEvent, a6 as GraphError, a7 as HostBinding, a8 as Invocation, a9 as KeySpec, aa as Placement, ab as PortName, ac as PresenterPort, ad as PreviewSlot, ae as Reason, af as ReportEntry, ag as ReportFold, ah as ReportPath, ai as ReportSlot, aj as ResultKind, ak as ResultSlots, al as RunOutcome, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, au as StackRef, av as ViewStatePort, aw as WiringCandidate, ax as WiringQuery, ay as bridgeCaller, az as carriesFailure, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as foldReport, aH as isBoundPath, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aM as reportDiagnostics, aN as toArgv, aO as uniqueDiagnostics } from './mapping-CopjG8Ae.mjs';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
@@ -30,18 +30,13 @@ type AppProps = {
|
|
|
30
30
|
*/
|
|
31
31
|
results?: ResultStore;
|
|
32
32
|
/**
|
|
33
|
-
* Height of the canvas root. Defaults to `100vh`;
|
|
34
|
-
*
|
|
33
|
+
* Height of the canvas root. Defaults to `100vh`; a host that mounts the
|
|
34
|
+
* canvas inside its own panel passes `100%` when that panel establishes an
|
|
35
|
+
* explicit height.
|
|
35
36
|
*/
|
|
36
37
|
height?: React__default.CSSProperties['height'];
|
|
37
|
-
/**
|
|
38
|
-
* True when the canvas is mounted INSIDE a host panel rather than owning
|
|
39
|
-
* the window: the native zoom Controls dock top-left instead of
|
|
40
|
-
* bottom-right (Canvas.tsx).
|
|
41
|
-
*/
|
|
42
|
-
embedded?: boolean;
|
|
43
38
|
};
|
|
44
|
-
declare function App({ ports, contributions, height,
|
|
39
|
+
declare function App({ ports, contributions, height, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
|
|
45
40
|
|
|
46
41
|
type SnapshotSourceInput = {
|
|
47
42
|
bundleUrl: string;
|
|
@@ -99,9 +94,8 @@ declare class ErrorBoundary extends React__default.Component<{
|
|
|
99
94
|
render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
100
95
|
}
|
|
101
96
|
|
|
102
|
-
type
|
|
97
|
+
type InterfacePin = NodePin & {
|
|
103
98
|
handleId: string;
|
|
104
|
-
label: string;
|
|
105
99
|
side: 'input' | 'output';
|
|
106
100
|
color: {
|
|
107
101
|
fill: string;
|
|
@@ -116,11 +110,27 @@ type GroupNodeData = {
|
|
|
116
110
|
collapsed: boolean;
|
|
117
111
|
hasErrors: boolean;
|
|
118
112
|
badges: readonly Badge[];
|
|
119
|
-
|
|
113
|
+
interfacePins: InterfacePin[];
|
|
120
114
|
};
|
|
121
115
|
type GroupNodeNode = Node<GroupNodeData, 'groupNode'>;
|
|
122
116
|
declare const GroupNode: React__default.FC<NodeProps<GroupNodeNode>>;
|
|
123
117
|
|
|
118
|
+
/** What the engine found on one of a node's inputs: the worst finding,
|
|
119
|
+
* when it found more than one. */
|
|
120
|
+
type PinFinding = {
|
|
121
|
+
message: string;
|
|
122
|
+
tone: Badge['tone'];
|
|
123
|
+
};
|
|
124
|
+
/** The decorations the canvas draws: each node's badges — the overlays'
|
|
125
|
+
* and the engine's — and the engine's findings on its inputs, by input
|
|
126
|
+
* name. An overlay hands in badges only (`Decorations`). */
|
|
127
|
+
type DrawnDecorations = {
|
|
128
|
+
nodes: Readonly<Record<string, NodeDecoration & {
|
|
129
|
+
pins?: Readonly<Record<string, PinFinding>>;
|
|
130
|
+
}>>;
|
|
131
|
+
};
|
|
132
|
+
declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
|
|
133
|
+
|
|
124
134
|
type ModuleNodeData = RenderNode & {
|
|
125
135
|
hasValidationError?: boolean;
|
|
126
136
|
isNew?: boolean;
|
|
@@ -132,6 +142,9 @@ type ModuleNodeData = RenderNode & {
|
|
|
132
142
|
* (nodeIdForAddress can return a group id) is not a ModuleNode concern
|
|
133
143
|
* either way. */
|
|
134
144
|
badges?: readonly Badge[];
|
|
145
|
+
/** What the engine found on this node's inputs, by input name — the
|
|
146
|
+
* decoration's `pins`. */
|
|
147
|
+
pins?: Readonly<Record<string, PinFinding>>;
|
|
135
148
|
};
|
|
136
149
|
type ModuleNodeNode = Node<ModuleNodeData, 'moduleNode'>;
|
|
137
150
|
declare const ModuleNode: React__default.FC<NodeProps<ModuleNodeNode>>;
|
|
@@ -251,8 +264,6 @@ type CommandArgsFormProps = {
|
|
|
251
264
|
};
|
|
252
265
|
declare function CommandArgsForm({ form }: CommandArgsFormProps): react_jsx_runtime.JSX.Element | null;
|
|
253
266
|
|
|
254
|
-
declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): Decorations;
|
|
255
|
-
|
|
256
267
|
declare function defineOverlay<P extends BoundPath>(o: {
|
|
257
268
|
id: string;
|
|
258
269
|
read: CommandRead<P>;
|
|
@@ -280,15 +291,15 @@ declare function PanelScope({ ctx, target, paths, tick, onReadError, children, }
|
|
|
280
291
|
}): react_jsx_runtime.JSX.Element;
|
|
281
292
|
declare function usePanelScope(): PanelScopeValue;
|
|
282
293
|
|
|
283
|
-
declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element
|
|
294
|
+
declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
284
295
|
declare const conflictPanel: Panel;
|
|
285
296
|
|
|
286
|
-
declare function UnsavedMarker(
|
|
297
|
+
declare function UnsavedMarker(): react_jsx_runtime.JSX.Element;
|
|
287
298
|
declare const unsavedMarker: Panel;
|
|
288
|
-
declare function UngeneratedMarker(
|
|
299
|
+
declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
|
|
289
300
|
declare const ungeneratedMarker: Panel;
|
|
290
301
|
|
|
291
|
-
declare function SourceRefusedBanner(
|
|
302
|
+
declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
|
|
292
303
|
declare const sourceRefusedPanel: Panel;
|
|
293
304
|
|
|
294
305
|
type SourceState = {
|
|
@@ -305,7 +316,7 @@ type CommandReadState<P extends BoundPath> = {
|
|
|
305
316
|
};
|
|
306
317
|
declare function useCommandRead<P extends BoundPath>(read: CommandRead<P>, target?: ActionTarget): CommandReadState<P>;
|
|
307
318
|
|
|
308
|
-
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'view' | 'selection' | 'diagnostics'>>;
|
|
319
|
+
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
|
|
309
320
|
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
|
|
310
321
|
declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
|
|
311
322
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
@@ -316,7 +327,7 @@ type CanvasContextValue = {
|
|
|
316
327
|
bundle: Bundle;
|
|
317
328
|
view: CanvasView;
|
|
318
329
|
ctx: CanvasCtx;
|
|
319
|
-
decorations:
|
|
330
|
+
decorations: DrawnDecorations;
|
|
320
331
|
editable: boolean;
|
|
321
332
|
arrangement: CanvasArrangement;
|
|
322
333
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
@@ -330,10 +341,9 @@ type CanvasContextValue = {
|
|
|
330
341
|
}) => void;
|
|
331
342
|
runner: ActionRunner;
|
|
332
343
|
layout: LayoutHandle;
|
|
333
|
-
settingsOpen: boolean;
|
|
334
344
|
setSettingsOpen: (next: boolean) => void;
|
|
335
345
|
};
|
|
336
346
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
337
347
|
declare function useCanvas(): CanvasContextValue;
|
|
338
348
|
|
|
339
|
-
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,
|
|
349
|
+
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, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
2
2
|
export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, 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,
|
|
8
|
-
export { m as
|
|
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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-CopjG8Ae.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 COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, M as ContextKey, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, W as EditorBinding, X as EditorEnv, Y as EditorEnvExtras, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GenerateEvent, a6 as GraphError, a7 as HostBinding, a8 as Invocation, a9 as KeySpec, aa as Placement, ab as PortName, ac as PresenterPort, ad as PreviewSlot, ae as Reason, af as ReportEntry, ag as ReportFold, ah as ReportPath, ai as ReportSlot, aj as ResultKind, ak as ResultSlots, al as RunOutcome, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, au as StackRef, av as ViewStatePort, aw as WiringCandidate, ax as WiringQuery, ay as bridgeCaller, az as carriesFailure, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as foldReport, aH as isBoundPath, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aM as reportDiagnostics, aN as toArgv, aO as uniqueDiagnostics } from './mapping-CopjG8Ae.js';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
@@ -30,18 +30,13 @@ type AppProps = {
|
|
|
30
30
|
*/
|
|
31
31
|
results?: ResultStore;
|
|
32
32
|
/**
|
|
33
|
-
* Height of the canvas root. Defaults to `100vh`;
|
|
34
|
-
*
|
|
33
|
+
* Height of the canvas root. Defaults to `100vh`; a host that mounts the
|
|
34
|
+
* canvas inside its own panel passes `100%` when that panel establishes an
|
|
35
|
+
* explicit height.
|
|
35
36
|
*/
|
|
36
37
|
height?: React__default.CSSProperties['height'];
|
|
37
|
-
/**
|
|
38
|
-
* True when the canvas is mounted INSIDE a host panel rather than owning
|
|
39
|
-
* the window: the native zoom Controls dock top-left instead of
|
|
40
|
-
* bottom-right (Canvas.tsx).
|
|
41
|
-
*/
|
|
42
|
-
embedded?: boolean;
|
|
43
38
|
};
|
|
44
|
-
declare function App({ ports, contributions, height,
|
|
39
|
+
declare function App({ ports, contributions, height, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
|
|
45
40
|
|
|
46
41
|
type SnapshotSourceInput = {
|
|
47
42
|
bundleUrl: string;
|
|
@@ -99,9 +94,8 @@ declare class ErrorBoundary extends React__default.Component<{
|
|
|
99
94
|
render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
100
95
|
}
|
|
101
96
|
|
|
102
|
-
type
|
|
97
|
+
type InterfacePin = NodePin & {
|
|
103
98
|
handleId: string;
|
|
104
|
-
label: string;
|
|
105
99
|
side: 'input' | 'output';
|
|
106
100
|
color: {
|
|
107
101
|
fill: string;
|
|
@@ -116,11 +110,27 @@ type GroupNodeData = {
|
|
|
116
110
|
collapsed: boolean;
|
|
117
111
|
hasErrors: boolean;
|
|
118
112
|
badges: readonly Badge[];
|
|
119
|
-
|
|
113
|
+
interfacePins: InterfacePin[];
|
|
120
114
|
};
|
|
121
115
|
type GroupNodeNode = Node<GroupNodeData, 'groupNode'>;
|
|
122
116
|
declare const GroupNode: React__default.FC<NodeProps<GroupNodeNode>>;
|
|
123
117
|
|
|
118
|
+
/** What the engine found on one of a node's inputs: the worst finding,
|
|
119
|
+
* when it found more than one. */
|
|
120
|
+
type PinFinding = {
|
|
121
|
+
message: string;
|
|
122
|
+
tone: Badge['tone'];
|
|
123
|
+
};
|
|
124
|
+
/** The decorations the canvas draws: each node's badges — the overlays'
|
|
125
|
+
* and the engine's — and the engine's findings on its inputs, by input
|
|
126
|
+
* name. An overlay hands in badges only (`Decorations`). */
|
|
127
|
+
type DrawnDecorations = {
|
|
128
|
+
nodes: Readonly<Record<string, NodeDecoration & {
|
|
129
|
+
pins?: Readonly<Record<string, PinFinding>>;
|
|
130
|
+
}>>;
|
|
131
|
+
};
|
|
132
|
+
declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
|
|
133
|
+
|
|
124
134
|
type ModuleNodeData = RenderNode & {
|
|
125
135
|
hasValidationError?: boolean;
|
|
126
136
|
isNew?: boolean;
|
|
@@ -132,6 +142,9 @@ type ModuleNodeData = RenderNode & {
|
|
|
132
142
|
* (nodeIdForAddress can return a group id) is not a ModuleNode concern
|
|
133
143
|
* either way. */
|
|
134
144
|
badges?: readonly Badge[];
|
|
145
|
+
/** What the engine found on this node's inputs, by input name — the
|
|
146
|
+
* decoration's `pins`. */
|
|
147
|
+
pins?: Readonly<Record<string, PinFinding>>;
|
|
135
148
|
};
|
|
136
149
|
type ModuleNodeNode = Node<ModuleNodeData, 'moduleNode'>;
|
|
137
150
|
declare const ModuleNode: React__default.FC<NodeProps<ModuleNodeNode>>;
|
|
@@ -251,8 +264,6 @@ type CommandArgsFormProps = {
|
|
|
251
264
|
};
|
|
252
265
|
declare function CommandArgsForm({ form }: CommandArgsFormProps): react_jsx_runtime.JSX.Element | null;
|
|
253
266
|
|
|
254
|
-
declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): Decorations;
|
|
255
|
-
|
|
256
267
|
declare function defineOverlay<P extends BoundPath>(o: {
|
|
257
268
|
id: string;
|
|
258
269
|
read: CommandRead<P>;
|
|
@@ -280,15 +291,15 @@ declare function PanelScope({ ctx, target, paths, tick, onReadError, children, }
|
|
|
280
291
|
}): react_jsx_runtime.JSX.Element;
|
|
281
292
|
declare function usePanelScope(): PanelScopeValue;
|
|
282
293
|
|
|
283
|
-
declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element
|
|
294
|
+
declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
284
295
|
declare const conflictPanel: Panel;
|
|
285
296
|
|
|
286
|
-
declare function UnsavedMarker(
|
|
297
|
+
declare function UnsavedMarker(): react_jsx_runtime.JSX.Element;
|
|
287
298
|
declare const unsavedMarker: Panel;
|
|
288
|
-
declare function UngeneratedMarker(
|
|
299
|
+
declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
|
|
289
300
|
declare const ungeneratedMarker: Panel;
|
|
290
301
|
|
|
291
|
-
declare function SourceRefusedBanner(
|
|
302
|
+
declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
|
|
292
303
|
declare const sourceRefusedPanel: Panel;
|
|
293
304
|
|
|
294
305
|
type SourceState = {
|
|
@@ -305,7 +316,7 @@ type CommandReadState<P extends BoundPath> = {
|
|
|
305
316
|
};
|
|
306
317
|
declare function useCommandRead<P extends BoundPath>(read: CommandRead<P>, target?: ActionTarget): CommandReadState<P>;
|
|
307
318
|
|
|
308
|
-
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'view' | 'selection' | 'diagnostics'>>;
|
|
319
|
+
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
|
|
309
320
|
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
|
|
310
321
|
declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
|
|
311
322
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
@@ -316,7 +327,7 @@ type CanvasContextValue = {
|
|
|
316
327
|
bundle: Bundle;
|
|
317
328
|
view: CanvasView;
|
|
318
329
|
ctx: CanvasCtx;
|
|
319
|
-
decorations:
|
|
330
|
+
decorations: DrawnDecorations;
|
|
320
331
|
editable: boolean;
|
|
321
332
|
arrangement: CanvasArrangement;
|
|
322
333
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
@@ -330,10 +341,9 @@ type CanvasContextValue = {
|
|
|
330
341
|
}) => void;
|
|
331
342
|
runner: ActionRunner;
|
|
332
343
|
layout: LayoutHandle;
|
|
333
|
-
settingsOpen: boolean;
|
|
334
344
|
setSettingsOpen: (next: boolean) => void;
|
|
335
345
|
};
|
|
336
346
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
337
347
|
declare function useCanvas(): CanvasContextValue;
|
|
338
348
|
|
|
339
|
-
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,
|
|
349
|
+
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, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
|