@lace-cloud/canvas 0.27.0 → 0.29.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 +8 -5
- package/dist/{chunk-F3X6TTZ6.mjs → chunk-ASG36ZXQ.mjs} +129 -18
- package/dist/{chunk-F3X6TTZ6.mjs.map → chunk-ASG36ZXQ.mjs.map} +1 -1
- package/dist/engine/index.cjs +129 -17
- 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 +3 -1
- package/dist/index.cjs +139 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-D7G7pqU4.d.mts → registry-CuZ4kEQJ.d.mts} +186 -11
- package/dist/{registry-D7G7pqU4.d.ts → registry-CuZ4kEQJ.d.ts} +186 -11
- package/package.json +3 -3
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 Bundle, E as EdgeRef, k as ActionRunner, L as LayoutHandle } from './registry-
|
|
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
|
|
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-CuZ4kEQJ.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-CuZ4kEQJ.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 = {
|
|
@@ -328,4 +338,4 @@ type CanvasContextValue = {
|
|
|
328
338
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
329
339
|
declare function useCanvas(): CanvasContextValue;
|
|
330
340
|
|
|
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 };
|
|
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, 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, 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
|
@@ -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 Bundle, E as EdgeRef, k as ActionRunner, L as LayoutHandle } from './registry-
|
|
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
|
|
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-CuZ4kEQJ.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-CuZ4kEQJ.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 = {
|
|
@@ -328,4 +338,4 @@ type CanvasContextValue = {
|
|
|
328
338
|
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
329
339
|
declare function useCanvas(): CanvasContextValue;
|
|
330
340
|
|
|
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 };
|
|
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, 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, 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.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
answering,
|
|
15
15
|
bridgeCaller,
|
|
16
16
|
carriesFailure,
|
|
17
|
+
commandUnderWay,
|
|
17
18
|
connectCaller,
|
|
18
19
|
createActionRunner,
|
|
19
20
|
createResultStore,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
rowActions,
|
|
37
38
|
toArgv,
|
|
38
39
|
uniqueDiagnostics
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ASG36ZXQ.mjs";
|
|
40
41
|
|
|
41
42
|
// src/index.ts
|
|
42
43
|
import { projectCanvasView as projectCanvasView2 } from "@lace-cloud/proto";
|
|
@@ -6054,6 +6055,13 @@ function App({
|
|
|
6054
6055
|
}
|
|
6055
6056
|
|
|
6056
6057
|
// src/adapters/snapshot-source.ts
|
|
6058
|
+
var SnapshotFetchError = class extends Error {
|
|
6059
|
+
constructor(status) {
|
|
6060
|
+
super(`snapshotSource: failed to fetch bundle (status ${status})`);
|
|
6061
|
+
this.status = status;
|
|
6062
|
+
this.name = "SnapshotFetchError";
|
|
6063
|
+
}
|
|
6064
|
+
};
|
|
6057
6065
|
function snapshotSource(input) {
|
|
6058
6066
|
const fetchImpl = input.fetch ?? globalThis.fetch.bind(globalThis);
|
|
6059
6067
|
let cached = null;
|
|
@@ -6065,9 +6073,7 @@ function snapshotSource(input) {
|
|
|
6065
6073
|
headers: { accept: "application/octet-stream", ...input.headers },
|
|
6066
6074
|
credentials: "include"
|
|
6067
6075
|
});
|
|
6068
|
-
if (!res.ok)
|
|
6069
|
-
throw new Error(`snapshotSource: failed to fetch bundle (status ${res.status})`);
|
|
6070
|
-
}
|
|
6076
|
+
if (!res.ok) throw new SnapshotFetchError(res.status);
|
|
6071
6077
|
const bytes = new Uint8Array(await res.arrayBuffer());
|
|
6072
6078
|
const source = {
|
|
6073
6079
|
bundle: Bundle.decode(bytes),
|
|
@@ -6137,6 +6143,7 @@ export {
|
|
|
6137
6143
|
ProvidersPanel,
|
|
6138
6144
|
Reason,
|
|
6139
6145
|
SCHEMAS,
|
|
6146
|
+
SnapshotFetchError,
|
|
6140
6147
|
SourceRefusedBanner,
|
|
6141
6148
|
TerraformConfigContent,
|
|
6142
6149
|
TerraformConfigPanel,
|
|
@@ -6147,6 +6154,7 @@ export {
|
|
|
6147
6154
|
answering,
|
|
6148
6155
|
bridgeCaller,
|
|
6149
6156
|
carriesFailure,
|
|
6157
|
+
commandUnderWay,
|
|
6150
6158
|
conflictPanel,
|
|
6151
6159
|
connectCaller,
|
|
6152
6160
|
createActionRunner,
|