@lace-cloud/canvas 0.29.0 → 0.31.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 -2
- package/dist/{AccordionSection-J3ALHB5M.css → AccordionSection-5X2XWUYY.css} +9 -2
- package/dist/BadgeRow-KVODWDQK.css +23 -0
- package/dist/CardActions-QLTNQUVW.css +40 -0
- package/dist/{ContextMenu-C7SLX23S.css → ContextMenu-S3JIZMET.css} +11 -0
- package/dist/{DiagnosticsPanel-T6VDHH4A.css → DiagnosticsPanel-MSK72CGM.css} +3 -1
- package/dist/{GroupNode-QWSLBFCH.css → GroupNode-NJOGOGQM.css} +3 -44
- package/dist/{ModuleConfigPanel-ZMWRMN5N.css → ModuleConfigPanel-DW3RSOEL.css} +6 -0
- package/dist/{ModuleNode-RRZ37SFM.css → ModuleNode-LPPBJZCD.css} +1 -60
- package/dist/{chunk-ASG36ZXQ.mjs → chunk-MVOO7T3B.mjs} +444 -126
- package/dist/chunk-MVOO7T3B.mjs.map +1 -0
- package/dist/engine/index.cjs +431 -123
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +7 -1
- package/dist/index.cjs +9263 -8860
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -23
- package/dist/index.d.ts +16 -23
- package/dist/index.mjs +2342 -2246
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-5JFNYXQ7.css → panels-shared-3HUQC7TC.css} +20 -2
- package/dist/{registry-CuZ4kEQJ.d.mts → registry-B56alajR.d.mts} +135 -37
- package/dist/{registry-CuZ4kEQJ.d.ts → registry-B56alajR.d.ts} +135 -37
- package/package.json +3 -3
- package/dist/chunk-ASG36ZXQ.mjs.map +0 -1
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,
|
|
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,
|
|
8
|
-
export {
|
|
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-B56alajR.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 commandPathOf, aL as commandUnderWay, aM as connectCaller, aN as createActionRunner, aO as createResultStore, aP as currentReport, aQ as defineCommand, aR as diagnosticsOf, aS as disabledReason, aT as foldReport, aU as generatedTree, aV as isBoundPath, aW as openEngineCommands, aX as openEngineSession, aY as parseBound, aZ as parseCommandFailure, a_ as reportDiagnostics, a$ as resolveContributions, b0 as rowActions, b1 as toArgv, b2 as uniqueDiagnostics } from './registry-B56alajR.mjs';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
@@ -81,10 +81,11 @@ type ContextMenuState = {
|
|
|
81
81
|
type Props$7 = {
|
|
82
82
|
contextMenu: ContextMenuState;
|
|
83
83
|
actions: readonly ActionContribution[];
|
|
84
|
+
disabledReason: (action: ActionContribution) => string | undefined;
|
|
84
85
|
onRun: (action: ActionContribution) => void;
|
|
85
86
|
onDismiss: () => void;
|
|
86
87
|
};
|
|
87
|
-
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;
|
|
88
89
|
|
|
89
90
|
type ErrorStateProps = {
|
|
90
91
|
message: string;
|
|
@@ -147,10 +148,10 @@ type ModuleNodeData = RenderNode & {
|
|
|
147
148
|
/** Badges the diagnostics decoration attached to this node — tone
|
|
148
149
|
* `'error'` drives the error border/title. `RenderNode` carries no
|
|
149
150
|
* error state of its own; a node's error styling comes only from its
|
|
150
|
-
* decoration badges. The same field
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* 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. */
|
|
154
155
|
badges?: readonly Badge[];
|
|
155
156
|
/** What the engine found on this node's inputs, by input name — the
|
|
156
157
|
* decoration's `pins`. */
|
|
@@ -181,19 +182,16 @@ type ContentProps$3 = {
|
|
|
181
182
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
182
183
|
};
|
|
183
184
|
declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
184
|
-
type Props$5 = {
|
|
185
|
-
locals: LocalEntry[] | undefined;
|
|
186
|
-
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
185
|
+
type Props$5 = ContentProps$3 & {
|
|
187
186
|
onClose: () => void;
|
|
188
187
|
};
|
|
189
|
-
declare function LocalsPanel({
|
|
188
|
+
declare function LocalsPanel({ onClose, ...content }: Props$5): react_jsx_runtime.JSX.Element;
|
|
190
189
|
|
|
191
190
|
type Props$4 = {
|
|
192
191
|
instance_id: string;
|
|
193
192
|
onClose: () => void;
|
|
194
|
-
onModified?: (instanceId: string) => void;
|
|
195
193
|
};
|
|
196
|
-
declare function ModuleConfigPanel({ instance_id, onClose
|
|
194
|
+
declare function ModuleConfigPanel({ instance_id, onClose }: Props$4): react_jsx_runtime.JSX.Element;
|
|
197
195
|
|
|
198
196
|
type VariableDef = {
|
|
199
197
|
name: string;
|
|
@@ -323,19 +321,14 @@ type CanvasContextValue = {
|
|
|
323
321
|
editable: boolean;
|
|
324
322
|
arrangement: CanvasArrangement;
|
|
325
323
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
326
|
-
selection:
|
|
327
|
-
|
|
328
|
-
edge: EdgeRef | null;
|
|
329
|
-
};
|
|
330
|
-
setSelection: (next: {
|
|
331
|
-
nodes: readonly string[];
|
|
332
|
-
edge: EdgeRef | null;
|
|
333
|
-
}) => void;
|
|
324
|
+
selection: CanvasSelection;
|
|
325
|
+
setSelection: (next: CanvasSelection) => void;
|
|
334
326
|
runner: ActionRunner;
|
|
327
|
+
editing: boolean;
|
|
335
328
|
layout: LayoutHandle;
|
|
336
329
|
setSettingsOpen: (next: boolean) => void;
|
|
337
330
|
};
|
|
338
331
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
339
332
|
declare function useCanvas(): CanvasContextValue;
|
|
340
333
|
|
|
341
|
-
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,
|
|
334
|
+
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,
|
|
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,
|
|
8
|
-
export {
|
|
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-B56alajR.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 commandPathOf, aL as commandUnderWay, aM as connectCaller, aN as createActionRunner, aO as createResultStore, aP as currentReport, aQ as defineCommand, aR as diagnosticsOf, aS as disabledReason, aT as foldReport, aU as generatedTree, aV as isBoundPath, aW as openEngineCommands, aX as openEngineSession, aY as parseBound, aZ as parseCommandFailure, a_ as reportDiagnostics, a$ as resolveContributions, b0 as rowActions, b1 as toArgv, b2 as uniqueDiagnostics } from './registry-B56alajR.js';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
|
@@ -81,10 +81,11 @@ type ContextMenuState = {
|
|
|
81
81
|
type Props$7 = {
|
|
82
82
|
contextMenu: ContextMenuState;
|
|
83
83
|
actions: readonly ActionContribution[];
|
|
84
|
+
disabledReason: (action: ActionContribution) => string | undefined;
|
|
84
85
|
onRun: (action: ActionContribution) => void;
|
|
85
86
|
onDismiss: () => void;
|
|
86
87
|
};
|
|
87
|
-
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;
|
|
88
89
|
|
|
89
90
|
type ErrorStateProps = {
|
|
90
91
|
message: string;
|
|
@@ -147,10 +148,10 @@ type ModuleNodeData = RenderNode & {
|
|
|
147
148
|
/** Badges the diagnostics decoration attached to this node — tone
|
|
148
149
|
* `'error'` drives the error border/title. `RenderNode` carries no
|
|
149
150
|
* error state of its own; a node's error styling comes only from its
|
|
150
|
-
* decoration badges. The same field
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* 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. */
|
|
154
155
|
badges?: readonly Badge[];
|
|
155
156
|
/** What the engine found on this node's inputs, by input name — the
|
|
156
157
|
* decoration's `pins`. */
|
|
@@ -181,19 +182,16 @@ type ContentProps$3 = {
|
|
|
181
182
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
182
183
|
};
|
|
183
184
|
declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
184
|
-
type Props$5 = {
|
|
185
|
-
locals: LocalEntry[] | undefined;
|
|
186
|
-
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
185
|
+
type Props$5 = ContentProps$3 & {
|
|
187
186
|
onClose: () => void;
|
|
188
187
|
};
|
|
189
|
-
declare function LocalsPanel({
|
|
188
|
+
declare function LocalsPanel({ onClose, ...content }: Props$5): react_jsx_runtime.JSX.Element;
|
|
190
189
|
|
|
191
190
|
type Props$4 = {
|
|
192
191
|
instance_id: string;
|
|
193
192
|
onClose: () => void;
|
|
194
|
-
onModified?: (instanceId: string) => void;
|
|
195
193
|
};
|
|
196
|
-
declare function ModuleConfigPanel({ instance_id, onClose
|
|
194
|
+
declare function ModuleConfigPanel({ instance_id, onClose }: Props$4): react_jsx_runtime.JSX.Element;
|
|
197
195
|
|
|
198
196
|
type VariableDef = {
|
|
199
197
|
name: string;
|
|
@@ -323,19 +321,14 @@ type CanvasContextValue = {
|
|
|
323
321
|
editable: boolean;
|
|
324
322
|
arrangement: CanvasArrangement;
|
|
325
323
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
326
|
-
selection:
|
|
327
|
-
|
|
328
|
-
edge: EdgeRef | null;
|
|
329
|
-
};
|
|
330
|
-
setSelection: (next: {
|
|
331
|
-
nodes: readonly string[];
|
|
332
|
-
edge: EdgeRef | null;
|
|
333
|
-
}) => void;
|
|
324
|
+
selection: CanvasSelection;
|
|
325
|
+
setSelection: (next: CanvasSelection) => void;
|
|
334
326
|
runner: ActionRunner;
|
|
327
|
+
editing: boolean;
|
|
335
328
|
layout: LayoutHandle;
|
|
336
329
|
setSettingsOpen: (next: boolean) => void;
|
|
337
330
|
};
|
|
338
331
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
339
332
|
declare function useCanvas(): CanvasContextValue;
|
|
340
333
|
|
|
341
|
-
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,
|
|
334
|
+
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 };
|