@lace-cloud/canvas 0.35.0 → 0.37.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 +6 -1
- package/dist/{Canvas-VQQEZSPA.css → Canvas-UTKLP6WI.css} +32 -1
- package/dist/{CardActions-QLTNQUVW.css → CardActions-ORDC2L5Y.css} +4 -0
- package/dist/{ContextMenu-S3JIZMET.css → ContextMenu-P457V6QE.css} +1 -1
- package/dist/{GroupNode-NJOGOGQM.css → GroupNode-2IGAUA6V.css} +14 -5
- package/dist/{ModuleNode-LPPBJZCD.css → ModuleNode-3GTXKKVQ.css} +20 -20
- package/dist/NodeDropTarget-H5L3NZS6.css +15 -0
- package/dist/{chunk-O3I4KLND.mjs → chunk-45ZS7XCZ.mjs} +238 -31
- package/dist/chunk-45ZS7XCZ.mjs.map +1 -0
- package/dist/engine/index.cjs +211 -29
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +21 -5
- package/dist/engine/index.d.ts +21 -5
- package/dist/engine/index.mjs +7 -3
- package/dist/index.cjs +1468 -896
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +51 -19
- package/dist/index.d.ts +51 -19
- package/dist/index.mjs +864 -490
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-ynSG1hCz.d.mts → registry-4-XX1MRe.d.mts} +75 -9
- package/dist/{registry-ynSG1hCz.d.ts → registry-4-XX1MRe.d.ts} +75 -9
- package/package.json +5 -5
- package/dist/chunk-O3I4KLND.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { NodePin, MetaArgument,
|
|
1
|
+
import { CanvasView, NodePin, MetaArgument, Diagnostic, RenderNode, deriveSettingsConfig, deriveNodeConfig, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
2
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 { aZ as ContributionSet, a_ as PanelSpec, a$ as CanvasCtx, k as CanvasPorts, ab as ResultStore, S as SourcePort, A as ActionContribution, b0 as Badge, b1 as NodeDecoration, b2 as Decorations, $ as PendingForm, h as BoundPath,
|
|
8
|
-
export { b8 as ActionIcon, c as ActionRunnerOptions, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, i as BridgeEngineCaller, j as Busy, C as COMMANDS, b9 as ClipboardStore, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, ba as ContextKey, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, bb as EditorBinding, bc as EditorEnv, bd as EditorEnvExtras, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, X as Invocation, be as KeySpec, bf as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ac as RunCtx, ad as RunOutcome, ae as RunSlot, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, bg as disabledReason, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aV as reportDiagnostics, bh as resolveContributions, bi as rowActions, aX as toArgv, aY as uniqueDiagnostics } from './registry-
|
|
7
|
+
import { aZ as ContributionSet, a_ as PanelSpec, a$ as CanvasCtx, k as CanvasPorts, ab as ResultStore, S as SourcePort, A as ActionContribution, b0 as Badge, b1 as NodeDecoration, b2 as Decorations, b3 as Bundle, $ as PendingForm, h as BoundPath, b4 as CommandRead, J as JsonOf, b5 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ap as SourceEnd, b as ActionRunner, b6 as CanvasSelection, b7 as LayoutHandle } from './registry-4-XX1MRe.mjs';
|
|
8
|
+
export { b8 as ActionIcon, c as ActionRunnerOptions, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, i as BridgeEngineCaller, j as Busy, C as COMMANDS, b9 as ClipboardStore, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, ba as ContextKey, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, bb as EditorBinding, bc as EditorEnv, bd as EditorEnvExtras, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, X as Invocation, be as KeySpec, bf as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ac as RunCtx, ad as RunOutcome, ae as RunSlot, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, bg as disabledReason, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aV as reportDiagnostics, bh as resolveContributions, bi as rowActions, aX as toArgv, aY as uniqueDiagnostics } from './registry-4-XX1MRe.mjs';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
12
12
|
|
|
13
|
+
type ViewScopes = Pick<CanvasView, 'nodes' | 'groups'>;
|
|
14
|
+
|
|
13
15
|
type PanelProps = {
|
|
14
16
|
ctx: CanvasCtx;
|
|
15
17
|
};
|
|
@@ -142,7 +144,7 @@ type DrawnDecorations = {
|
|
|
142
144
|
pins?: Readonly<Record<string, PinFinding>>;
|
|
143
145
|
}>>;
|
|
144
146
|
};
|
|
145
|
-
declare function decorate(view:
|
|
147
|
+
declare function decorate(view: ViewScopes, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
|
|
146
148
|
|
|
147
149
|
type ModuleNodeData = RenderNode & {
|
|
148
150
|
hasValidationError?: boolean;
|
|
@@ -173,17 +175,47 @@ type Props$6 = {
|
|
|
173
175
|
target: string;
|
|
174
176
|
sourceOutput: string;
|
|
175
177
|
targetInput: string;
|
|
178
|
+
sourcePin?: boolean;
|
|
179
|
+
targetPin?: boolean;
|
|
176
180
|
onDelete?: () => void;
|
|
177
181
|
onClose: () => void;
|
|
178
182
|
};
|
|
179
|
-
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, onDelete, onClose, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, sourcePin, targetPin, onDelete, onClose, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
184
|
+
|
|
185
|
+
type Fields = Record<string, unknown>;
|
|
186
|
+
type Derive = {
|
|
187
|
+
settings(moduleKey: string): ReturnType<typeof deriveSettingsConfig>;
|
|
188
|
+
node(path: string): ReturnType<typeof deriveNodeConfig>;
|
|
189
|
+
};
|
|
190
|
+
type DraftKind<T extends Fields, P extends readonly unknown[]> = {
|
|
191
|
+
name: string;
|
|
192
|
+
seed(derive: Derive, params: P): T | null;
|
|
193
|
+
};
|
|
194
|
+
type AnyKind = DraftKind<Fields, readonly unknown[]>;
|
|
195
|
+
type Held = {
|
|
196
|
+
kind: AnyKind;
|
|
197
|
+
params: readonly unknown[];
|
|
198
|
+
drafts: ReadonlyMap<string, unknown>;
|
|
199
|
+
sending: boolean;
|
|
200
|
+
};
|
|
201
|
+
type DraftStore = {
|
|
202
|
+
subscribe(listener: () => void): () => void;
|
|
203
|
+
read<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): Held | undefined;
|
|
204
|
+
set<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P, field: string, value: unknown, seed: T): void;
|
|
205
|
+
begin<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): boolean;
|
|
206
|
+
settleSent<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P, sent: T): void;
|
|
207
|
+
end<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): void;
|
|
208
|
+
settle(bundle: Bundle): void;
|
|
209
|
+
};
|
|
210
|
+
declare function createDraftStore(): DraftStore;
|
|
180
211
|
|
|
181
212
|
type LocalEntry = SettingsConfig['locals'][number];
|
|
182
213
|
type ContentProps$3 = {
|
|
214
|
+
moduleKey: string;
|
|
183
215
|
locals: LocalEntry[] | undefined;
|
|
184
216
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
185
217
|
};
|
|
186
|
-
declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function LocalsContent({ moduleKey, locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
187
219
|
type Props$5 = ContentProps$3 & {
|
|
188
220
|
onClose: () => void;
|
|
189
221
|
};
|
|
@@ -217,10 +249,11 @@ type OutputDefEntry = {
|
|
|
217
249
|
depends_on?: string[];
|
|
218
250
|
};
|
|
219
251
|
type ContentProps$2 = {
|
|
252
|
+
moduleKey: string;
|
|
220
253
|
settings: SettingsConfig;
|
|
221
254
|
onSave: (variables: VariableDef[], outputs: OutputDefEntry[]) => void | Promise<void>;
|
|
222
255
|
};
|
|
223
|
-
declare function ModuleInterfaceContent({ settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
|
|
256
|
+
declare function ModuleInterfaceContent({ moduleKey, settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
|
|
224
257
|
type Props$3 = ContentProps$2 & {
|
|
225
258
|
onClose: () => void;
|
|
226
259
|
};
|
|
@@ -228,29 +261,27 @@ declare function ModuleInterfacePanel({ onClose, ...content }: Props$3): react_j
|
|
|
228
261
|
|
|
229
262
|
type ProviderEntry = SettingsConfig['providers'][number];
|
|
230
263
|
type ContentProps$1 = {
|
|
264
|
+
moduleKey: string;
|
|
231
265
|
providers: ProviderEntry[] | undefined;
|
|
232
266
|
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
233
267
|
};
|
|
234
|
-
declare function ProvidersContent({ providers, onSave }: ContentProps$1): react_jsx_runtime.JSX.Element;
|
|
235
|
-
type Props$2 = {
|
|
236
|
-
providers: ProviderEntry[] | undefined;
|
|
237
|
-
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
268
|
+
declare function ProvidersContent({ moduleKey, providers, onSave }: ContentProps$1): react_jsx_runtime.JSX.Element;
|
|
269
|
+
type Props$2 = ContentProps$1 & {
|
|
238
270
|
onClose: () => void;
|
|
239
271
|
};
|
|
240
|
-
declare function ProvidersPanel({
|
|
272
|
+
declare function ProvidersPanel({ onClose, ...content }: Props$2): react_jsx_runtime.JSX.Element;
|
|
241
273
|
|
|
242
274
|
type TerraformConfig = SettingsConfig['terraform'];
|
|
243
275
|
type ContentProps = {
|
|
276
|
+
moduleKey: string;
|
|
244
277
|
terraform: TerraformConfig | undefined;
|
|
245
278
|
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
246
279
|
};
|
|
247
|
-
declare function TerraformConfigContent({ terraform, onSave }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
248
|
-
type Props$1 = {
|
|
249
|
-
terraform: TerraformConfig | undefined;
|
|
250
|
-
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
280
|
+
declare function TerraformConfigContent({ moduleKey, terraform, onSave }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
281
|
+
type Props$1 = ContentProps & {
|
|
251
282
|
onClose: () => void;
|
|
252
283
|
};
|
|
253
|
-
declare function TerraformConfigPanel({
|
|
284
|
+
declare function TerraformConfigPanel({ onClose, ...content }: Props$1): react_jsx_runtime.JSX.Element;
|
|
254
285
|
|
|
255
286
|
type Props = {
|
|
256
287
|
onClose: () => void;
|
|
@@ -323,6 +354,7 @@ type CanvasContextValue = {
|
|
|
323
354
|
ctx: CanvasCtx;
|
|
324
355
|
decorations: DrawnDecorations;
|
|
325
356
|
editable: boolean;
|
|
357
|
+
drafts: DraftStore;
|
|
326
358
|
arrangement: CanvasArrangement;
|
|
327
359
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
328
360
|
selection: CanvasSelection;
|
|
@@ -335,5 +367,5 @@ type CanvasContextValue = {
|
|
|
335
367
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
336
368
|
declare function useCanvas(): CanvasContextValue;
|
|
337
369
|
|
|
338
|
-
export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, Badge, BoundPath, CanvasContext, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, CommandRead, CommandResult, ConflictBanner, ContextMenu, ContributionSet, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, NodeConfigBusProvider, NodeDecoration, OverlayContribution, PanelScope, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, useEditing, usePanelScope };
|
|
339
|
-
export type { AppProps, CanvasContextValue, CommandArgsFormProps, CommandReadState, Contributions, GroupNodeData, InterfacePin, ModuleNodeData, Panel, PanelProps, PanelScopeValue, SnapshotSourceInput };
|
|
370
|
+
export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, Badge, BoundPath, CanvasContext, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, CommandRead, CommandResult, ConflictBanner, ContextMenu, ContributionSet, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, NodeConfigBusProvider, NodeDecoration, OverlayContribution, PanelScope, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, createDraftStore, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, useEditing, usePanelScope };
|
|
371
|
+
export type { AppProps, CanvasContextValue, CommandArgsFormProps, CommandReadState, Contributions, DraftStore, GroupNodeData, InterfacePin, ModuleNodeData, Panel, PanelProps, PanelScopeValue, SnapshotSourceInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { NodePin, MetaArgument,
|
|
1
|
+
import { CanvasView, NodePin, MetaArgument, Diagnostic, RenderNode, deriveSettingsConfig, deriveNodeConfig, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
2
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 { aZ as ContributionSet, a_ as PanelSpec, a$ as CanvasCtx, k as CanvasPorts, ab as ResultStore, S as SourcePort, A as ActionContribution, b0 as Badge, b1 as NodeDecoration, b2 as Decorations, $ as PendingForm, h as BoundPath,
|
|
8
|
-
export { b8 as ActionIcon, c as ActionRunnerOptions, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, i as BridgeEngineCaller, j as Busy, C as COMMANDS, b9 as ClipboardStore, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, ba as ContextKey, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, bb as EditorBinding, bc as EditorEnv, bd as EditorEnvExtras, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, X as Invocation, be as KeySpec, bf as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ac as RunCtx, ad as RunOutcome, ae as RunSlot, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, bg as disabledReason, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aV as reportDiagnostics, bh as resolveContributions, bi as rowActions, aX as toArgv, aY as uniqueDiagnostics } from './registry-
|
|
7
|
+
import { aZ as ContributionSet, a_ as PanelSpec, a$ as CanvasCtx, k as CanvasPorts, ab as ResultStore, S as SourcePort, A as ActionContribution, b0 as Badge, b1 as NodeDecoration, b2 as Decorations, b3 as Bundle, $ as PendingForm, h as BoundPath, b4 as CommandRead, J as JsonOf, b5 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ap as SourceEnd, b as ActionRunner, b6 as CanvasSelection, b7 as LayoutHandle } from './registry-4-XX1MRe.js';
|
|
8
|
+
export { b8 as ActionIcon, c as ActionRunnerOptions, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, i as BridgeEngineCaller, j as Busy, C as COMMANDS, b9 as ClipboardStore, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, ba as ContextKey, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, bb as EditorBinding, bc as EditorEnv, bd as EditorEnvExtras, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, X as Invocation, be as KeySpec, bf as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ac as RunCtx, ad as RunOutcome, ae as RunSlot, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, bg as disabledReason, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aV as reportDiagnostics, bh as resolveContributions, bi as rowActions, aX as toArgv, aY as uniqueDiagnostics } from './registry-4-XX1MRe.js';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
12
12
|
|
|
13
|
+
type ViewScopes = Pick<CanvasView, 'nodes' | 'groups'>;
|
|
14
|
+
|
|
13
15
|
type PanelProps = {
|
|
14
16
|
ctx: CanvasCtx;
|
|
15
17
|
};
|
|
@@ -142,7 +144,7 @@ type DrawnDecorations = {
|
|
|
142
144
|
pins?: Readonly<Record<string, PinFinding>>;
|
|
143
145
|
}>>;
|
|
144
146
|
};
|
|
145
|
-
declare function decorate(view:
|
|
147
|
+
declare function decorate(view: ViewScopes, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
|
|
146
148
|
|
|
147
149
|
type ModuleNodeData = RenderNode & {
|
|
148
150
|
hasValidationError?: boolean;
|
|
@@ -173,17 +175,47 @@ type Props$6 = {
|
|
|
173
175
|
target: string;
|
|
174
176
|
sourceOutput: string;
|
|
175
177
|
targetInput: string;
|
|
178
|
+
sourcePin?: boolean;
|
|
179
|
+
targetPin?: boolean;
|
|
176
180
|
onDelete?: () => void;
|
|
177
181
|
onClose: () => void;
|
|
178
182
|
};
|
|
179
|
-
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, onDelete, onClose, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, sourcePin, targetPin, onDelete, onClose, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
184
|
+
|
|
185
|
+
type Fields = Record<string, unknown>;
|
|
186
|
+
type Derive = {
|
|
187
|
+
settings(moduleKey: string): ReturnType<typeof deriveSettingsConfig>;
|
|
188
|
+
node(path: string): ReturnType<typeof deriveNodeConfig>;
|
|
189
|
+
};
|
|
190
|
+
type DraftKind<T extends Fields, P extends readonly unknown[]> = {
|
|
191
|
+
name: string;
|
|
192
|
+
seed(derive: Derive, params: P): T | null;
|
|
193
|
+
};
|
|
194
|
+
type AnyKind = DraftKind<Fields, readonly unknown[]>;
|
|
195
|
+
type Held = {
|
|
196
|
+
kind: AnyKind;
|
|
197
|
+
params: readonly unknown[];
|
|
198
|
+
drafts: ReadonlyMap<string, unknown>;
|
|
199
|
+
sending: boolean;
|
|
200
|
+
};
|
|
201
|
+
type DraftStore = {
|
|
202
|
+
subscribe(listener: () => void): () => void;
|
|
203
|
+
read<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): Held | undefined;
|
|
204
|
+
set<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P, field: string, value: unknown, seed: T): void;
|
|
205
|
+
begin<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): boolean;
|
|
206
|
+
settleSent<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P, sent: T): void;
|
|
207
|
+
end<T extends Fields, P extends readonly unknown[]>(kind: DraftKind<T, P>, params: P): void;
|
|
208
|
+
settle(bundle: Bundle): void;
|
|
209
|
+
};
|
|
210
|
+
declare function createDraftStore(): DraftStore;
|
|
180
211
|
|
|
181
212
|
type LocalEntry = SettingsConfig['locals'][number];
|
|
182
213
|
type ContentProps$3 = {
|
|
214
|
+
moduleKey: string;
|
|
183
215
|
locals: LocalEntry[] | undefined;
|
|
184
216
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
185
217
|
};
|
|
186
|
-
declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function LocalsContent({ moduleKey, locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
187
219
|
type Props$5 = ContentProps$3 & {
|
|
188
220
|
onClose: () => void;
|
|
189
221
|
};
|
|
@@ -217,10 +249,11 @@ type OutputDefEntry = {
|
|
|
217
249
|
depends_on?: string[];
|
|
218
250
|
};
|
|
219
251
|
type ContentProps$2 = {
|
|
252
|
+
moduleKey: string;
|
|
220
253
|
settings: SettingsConfig;
|
|
221
254
|
onSave: (variables: VariableDef[], outputs: OutputDefEntry[]) => void | Promise<void>;
|
|
222
255
|
};
|
|
223
|
-
declare function ModuleInterfaceContent({ settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
|
|
256
|
+
declare function ModuleInterfaceContent({ moduleKey, settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
|
|
224
257
|
type Props$3 = ContentProps$2 & {
|
|
225
258
|
onClose: () => void;
|
|
226
259
|
};
|
|
@@ -228,29 +261,27 @@ declare function ModuleInterfacePanel({ onClose, ...content }: Props$3): react_j
|
|
|
228
261
|
|
|
229
262
|
type ProviderEntry = SettingsConfig['providers'][number];
|
|
230
263
|
type ContentProps$1 = {
|
|
264
|
+
moduleKey: string;
|
|
231
265
|
providers: ProviderEntry[] | undefined;
|
|
232
266
|
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
233
267
|
};
|
|
234
|
-
declare function ProvidersContent({ providers, onSave }: ContentProps$1): react_jsx_runtime.JSX.Element;
|
|
235
|
-
type Props$2 = {
|
|
236
|
-
providers: ProviderEntry[] | undefined;
|
|
237
|
-
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
268
|
+
declare function ProvidersContent({ moduleKey, providers, onSave }: ContentProps$1): react_jsx_runtime.JSX.Element;
|
|
269
|
+
type Props$2 = ContentProps$1 & {
|
|
238
270
|
onClose: () => void;
|
|
239
271
|
};
|
|
240
|
-
declare function ProvidersPanel({
|
|
272
|
+
declare function ProvidersPanel({ onClose, ...content }: Props$2): react_jsx_runtime.JSX.Element;
|
|
241
273
|
|
|
242
274
|
type TerraformConfig = SettingsConfig['terraform'];
|
|
243
275
|
type ContentProps = {
|
|
276
|
+
moduleKey: string;
|
|
244
277
|
terraform: TerraformConfig | undefined;
|
|
245
278
|
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
246
279
|
};
|
|
247
|
-
declare function TerraformConfigContent({ terraform, onSave }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
248
|
-
type Props$1 = {
|
|
249
|
-
terraform: TerraformConfig | undefined;
|
|
250
|
-
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
280
|
+
declare function TerraformConfigContent({ moduleKey, terraform, onSave }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
281
|
+
type Props$1 = ContentProps & {
|
|
251
282
|
onClose: () => void;
|
|
252
283
|
};
|
|
253
|
-
declare function TerraformConfigPanel({
|
|
284
|
+
declare function TerraformConfigPanel({ onClose, ...content }: Props$1): react_jsx_runtime.JSX.Element;
|
|
254
285
|
|
|
255
286
|
type Props = {
|
|
256
287
|
onClose: () => void;
|
|
@@ -323,6 +354,7 @@ type CanvasContextValue = {
|
|
|
323
354
|
ctx: CanvasCtx;
|
|
324
355
|
decorations: DrawnDecorations;
|
|
325
356
|
editable: boolean;
|
|
357
|
+
drafts: DraftStore;
|
|
326
358
|
arrangement: CanvasArrangement;
|
|
327
359
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
328
360
|
selection: CanvasSelection;
|
|
@@ -335,5 +367,5 @@ type CanvasContextValue = {
|
|
|
335
367
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
336
368
|
declare function useCanvas(): CanvasContextValue;
|
|
337
369
|
|
|
338
|
-
export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, Badge, BoundPath, CanvasContext, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, CommandRead, CommandResult, ConflictBanner, ContextMenu, ContributionSet, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, NodeConfigBusProvider, NodeDecoration, OverlayContribution, PanelScope, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, useEditing, usePanelScope };
|
|
339
|
-
export type { AppProps, CanvasContextValue, CommandArgsFormProps, CommandReadState, Contributions, GroupNodeData, InterfacePin, ModuleNodeData, Panel, PanelProps, PanelScopeValue, SnapshotSourceInput };
|
|
370
|
+
export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, Badge, BoundPath, CanvasContext, CanvasCtx, CanvasPorts, CanvasSelection, CanvasSource, CommandArgsForm, CommandRead, CommandResult, ConflictBanner, ContextMenu, ContributionSet, Decorations, EdgeInspectorPanel, ErrorBoundary, ErrorState, GroupNode, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, NodeConfigBusProvider, NodeDecoration, OverlayContribution, PanelScope, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, SnapshotFetchError, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, createDraftStore, decorate, decorateDescribe, defineOverlay, describeOverlay, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, useEditing, usePanelScope };
|
|
371
|
+
export type { AppProps, CanvasContextValue, CommandArgsFormProps, CommandReadState, Contributions, DraftStore, GroupNodeData, InterfacePin, ModuleNodeData, Panel, PanelProps, PanelScopeValue, SnapshotSourceInput };
|