@lace-cloud/canvas 0.21.1 → 0.22.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
@@ -4,8 +4,8 @@ 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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-REUTGeUE.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-REUTGeUE.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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-DpFUMDvW.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-DpFUMDvW.mjs';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -199,33 +199,22 @@ type VariableDef = {
199
199
  sensitive?: boolean;
200
200
  nullable?: boolean;
201
201
  };
202
- type OutputExportDef = {
203
- name: string;
204
- source_instance: string;
205
- source_output: string;
206
- };
207
202
  type OutputDefEntry = {
208
203
  name: string;
209
- type: string;
204
+ value: string;
210
205
  description?: string;
211
206
  sensitive?: boolean;
212
207
  depends_on?: string[];
213
208
  };
214
209
  type ContentProps$2 = {
215
210
  settings: SettingsConfig;
216
- view: CanvasView | null;
217
- onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
218
- onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
211
+ onSave: (variables: VariableDef[], outputs: OutputDefEntry[]) => void | Promise<void>;
219
212
  };
220
- declare function ModuleInterfaceContent({ settings, view, onSaveVariables, onSaveExports, }: ContentProps$2): react_jsx_runtime.JSX.Element;
221
- type Props$3 = {
222
- settings: SettingsConfig;
223
- view: CanvasView | null;
224
- onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
225
- onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
213
+ declare function ModuleInterfaceContent({ settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
214
+ type Props$3 = ContentProps$2 & {
226
215
  onClose: () => void;
227
216
  };
228
- declare function ModuleInterfacePanel({ settings, view, onSaveVariables, onSaveExports, onClose, }: Props$3): react_jsx_runtime.JSX.Element;
217
+ declare function ModuleInterfacePanel({ onClose, ...content }: Props$3): react_jsx_runtime.JSX.Element;
229
218
 
230
219
  type ProviderEntry = SettingsConfig['providers'][number];
231
220
  type ContentProps$1 = {
@@ -255,9 +244,8 @@ declare function TerraformConfigPanel({ terraform, onSave, onClose }: Props$1):
255
244
 
256
245
  type Props = {
257
246
  onClose: () => void;
258
- onSaved?: () => void;
259
247
  };
260
- declare function UnifiedSettingsPanel({ onClose, onSaved }: Props): react_jsx_runtime.JSX.Element;
248
+ declare function UnifiedSettingsPanel({ onClose }: Props): react_jsx_runtime.JSX.Element;
261
249
 
262
250
  type CommandArgsFormProps = {
263
251
  form: PendingForm;
@@ -299,7 +287,7 @@ declare const unsavedMarker: Panel;
299
287
  declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
300
288
  declare const ungeneratedMarker: Panel;
301
289
 
302
- declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
290
+ declare function SourceRefusedBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
303
291
  declare const sourceRefusedPanel: Panel;
304
292
 
305
293
  type SourceState = {
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ 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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-REUTGeUE.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-REUTGeUE.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 RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-DpFUMDvW.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-DpFUMDvW.js';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -199,33 +199,22 @@ type VariableDef = {
199
199
  sensitive?: boolean;
200
200
  nullable?: boolean;
201
201
  };
202
- type OutputExportDef = {
203
- name: string;
204
- source_instance: string;
205
- source_output: string;
206
- };
207
202
  type OutputDefEntry = {
208
203
  name: string;
209
- type: string;
204
+ value: string;
210
205
  description?: string;
211
206
  sensitive?: boolean;
212
207
  depends_on?: string[];
213
208
  };
214
209
  type ContentProps$2 = {
215
210
  settings: SettingsConfig;
216
- view: CanvasView | null;
217
- onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
218
- onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
211
+ onSave: (variables: VariableDef[], outputs: OutputDefEntry[]) => void | Promise<void>;
219
212
  };
220
- declare function ModuleInterfaceContent({ settings, view, onSaveVariables, onSaveExports, }: ContentProps$2): react_jsx_runtime.JSX.Element;
221
- type Props$3 = {
222
- settings: SettingsConfig;
223
- view: CanvasView | null;
224
- onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
225
- onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
213
+ declare function ModuleInterfaceContent({ settings, onSave }: ContentProps$2): react_jsx_runtime.JSX.Element;
214
+ type Props$3 = ContentProps$2 & {
226
215
  onClose: () => void;
227
216
  };
228
- declare function ModuleInterfacePanel({ settings, view, onSaveVariables, onSaveExports, onClose, }: Props$3): react_jsx_runtime.JSX.Element;
217
+ declare function ModuleInterfacePanel({ onClose, ...content }: Props$3): react_jsx_runtime.JSX.Element;
229
218
 
230
219
  type ProviderEntry = SettingsConfig['providers'][number];
231
220
  type ContentProps$1 = {
@@ -255,9 +244,8 @@ declare function TerraformConfigPanel({ terraform, onSave, onClose }: Props$1):
255
244
 
256
245
  type Props = {
257
246
  onClose: () => void;
258
- onSaved?: () => void;
259
247
  };
260
- declare function UnifiedSettingsPanel({ onClose, onSaved }: Props): react_jsx_runtime.JSX.Element;
248
+ declare function UnifiedSettingsPanel({ onClose }: Props): react_jsx_runtime.JSX.Element;
261
249
 
262
250
  type CommandArgsFormProps = {
263
251
  form: PendingForm;
@@ -299,7 +287,7 @@ declare const unsavedMarker: Panel;
299
287
  declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
300
288
  declare const ungeneratedMarker: Panel;
301
289
 
302
- declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
290
+ declare function SourceRefusedBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
303
291
  declare const sourceRefusedPanel: Panel;
304
292
 
305
293
  type SourceState = {