@lace-cloud/canvas 0.41.0 → 0.43.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/{chunk-ELOBZOVE.mjs → chunk-GRF4IH3L.mjs} +18 -2
- package/dist/{chunk-ELOBZOVE.mjs.map → chunk-GRF4IH3L.mjs.map} +1 -1
- package/dist/engine/index.cjs +17 -1
- 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 +1 -1
- package/dist/index.cjs +18 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-DyBS0aH8.d.mts → registry-CDbiiO4i.d.mts} +30 -0
- package/dist/{registry-DyBS0aH8.d.ts → registry-CDbiiO4i.d.ts} +30 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { FC, HTMLAttributes, ReactNode } from 'react';
|
|
4
|
-
import { aU as ContributionSet, aV as PanelSpec, aW as CanvasCtx, k as CanvasPorts, aa as ResultStore, S as SourcePort, A as ActionContribution, aX as Badge, aY as Cloud, aZ as NodeDecoration, a_ as Decorations, $ as PendingForm, h as BoundPath, a$ as CommandRead, b0 as ContextKey, J as JsonOf, b1 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ao as SourceEnd, b as ActionRunner, b2 as CanvasSelection, b3 as LayoutHandle } from './registry-
|
|
5
|
-
export { b4 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, b5 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, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, b6 as EditorBinding, b7 as EditorEnv, b8 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, b9 as KeySpec, ba as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, ab as RunCtx, ac as RunOutcome, bb as RunRef, ad as RunSlot, ag as RunnerPorts, ah as RunningMark, bc as SCHEMAS, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, bd as disabledReason, aG as foldReport, aH as generatedTree, be as isBoundPath, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aS as reportDiagnostics, bf as resolveContributions, bg as rowActions } from './registry-
|
|
4
|
+
import { aU as ContributionSet, aV as PanelSpec, aW as CanvasCtx, k as CanvasPorts, aa as ResultStore, S as SourcePort, A as ActionContribution, aX as Badge, aY as Cloud, aZ as NodeDecoration, a_ as Decorations, $ as PendingForm, h as BoundPath, a$ as CommandRead, b0 as ContextKey, J as JsonOf, b1 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ao as SourceEnd, b as ActionRunner, b2 as CanvasSelection, b3 as LayoutHandle } from './registry-CDbiiO4i.mjs';
|
|
5
|
+
export { b4 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, b5 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, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, b6 as EditorBinding, b7 as EditorEnv, b8 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, b9 as KeySpec, ba as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, ab as RunCtx, ac as RunOutcome, bb as RunRef, ad as RunSlot, ag as RunnerPorts, ah as RunningMark, bc as SCHEMAS, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, bd as disabledReason, aG as foldReport, aH as generatedTree, be as isBoundPath, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aS as reportDiagnostics, bf as resolveContributions, bg as rowActions } from './registry-CDbiiO4i.mjs';
|
|
6
6
|
import { CanvasView, NodePin, MetaArgument, Diagnostic, RenderNode, deriveSettingsConfig, deriveNodeConfig, Bundle, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
7
7
|
export { CanvasArrangement, CanvasView, Conflict, Diagnostic, NodeConfig, NodePin, Reason, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent } from '@lace-cloud/proto';
|
|
8
8
|
import { NodeProps, Node } from '@xyflow/react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { FC, HTMLAttributes, ReactNode } from 'react';
|
|
4
|
-
import { aU as ContributionSet, aV as PanelSpec, aW as CanvasCtx, k as CanvasPorts, aa as ResultStore, S as SourcePort, A as ActionContribution, aX as Badge, aY as Cloud, aZ as NodeDecoration, a_ as Decorations, $ as PendingForm, h as BoundPath, a$ as CommandRead, b0 as ContextKey, J as JsonOf, b1 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ao as SourceEnd, b as ActionRunner, b2 as CanvasSelection, b3 as LayoutHandle } from './registry-
|
|
5
|
-
export { b4 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, b5 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, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, b6 as EditorBinding, b7 as EditorEnv, b8 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, b9 as KeySpec, ba as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, ab as RunCtx, ac as RunOutcome, bb as RunRef, ad as RunSlot, ag as RunnerPorts, ah as RunningMark, bc as SCHEMAS, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, bd as disabledReason, aG as foldReport, aH as generatedTree, be as isBoundPath, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aS as reportDiagnostics, bf as resolveContributions, bg as rowActions } from './registry-
|
|
4
|
+
import { aU as ContributionSet, aV as PanelSpec, aW as CanvasCtx, k as CanvasPorts, aa as ResultStore, S as SourcePort, A as ActionContribution, aX as Badge, aY as Cloud, aZ as NodeDecoration, a_ as Decorations, $ as PendingForm, h as BoundPath, a$ as CommandRead, b0 as ContextKey, J as JsonOf, b1 as OverlayContribution, d as ActionTarget, r as CommandResult, l as CanvasSource, ao as SourceEnd, b as ActionRunner, b2 as CanvasSelection, b3 as LayoutHandle } from './registry-CDbiiO4i.js';
|
|
5
|
+
export { b4 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, b5 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, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, b6 as EditorBinding, b7 as EditorEnv, b8 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, b9 as KeySpec, ba as Placement, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, ab as RunCtx, ac as RunOutcome, bb as RunRef, ad as RunSlot, ag as RunnerPorts, ah as RunningMark, bc as SCHEMAS, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, bd as disabledReason, aG as foldReport, aH as generatedTree, be as isBoundPath, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aS as reportDiagnostics, bf as resolveContributions, bg as rowActions } from './registry-CDbiiO4i.js';
|
|
6
6
|
import { CanvasView, NodePin, MetaArgument, Diagnostic, RenderNode, deriveSettingsConfig, deriveNodeConfig, Bundle, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
|
|
7
7
|
export { CanvasArrangement, CanvasView, Conflict, Diagnostic, NodeConfig, NodePin, Reason, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent } from '@lace-cloud/proto';
|
|
8
8
|
import { NodeProps, Node } from '@xyflow/react';
|
package/dist/index.mjs
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
sourceHandleId,
|
|
51
51
|
targetHandleId,
|
|
52
52
|
wireEndText
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GRF4IH3L.mjs";
|
|
54
54
|
|
|
55
55
|
// src/App.tsx
|
|
56
56
|
import { ReactFlowProvider } from "@xyflow/react";
|
|
@@ -240,7 +240,12 @@ function CanvasControls({
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
// src/components/ContextMenu.tsx
|
|
243
|
-
import {
|
|
243
|
+
import {
|
|
244
|
+
inertProps,
|
|
245
|
+
naturalHeight,
|
|
246
|
+
placeFloating,
|
|
247
|
+
Tooltip
|
|
248
|
+
} from "@lace-cloud/ui";
|
|
244
249
|
import { Fragment as Fragment2, useEffect, useLayoutEffect, useRef, useState as useState2 } from "react";
|
|
245
250
|
|
|
246
251
|
// src/core/sections.ts
|
|
@@ -311,8 +316,7 @@ import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-run
|
|
|
311
316
|
var atPoint = (x, y) => ({ left: x, right: x, top: y, bottom: y });
|
|
312
317
|
function naturalSize(menu) {
|
|
313
318
|
const box = menu.getBoundingClientRect();
|
|
314
|
-
|
|
315
|
-
return { width: box.width, height: Math.max(box.height, menu.scrollHeight + borders) };
|
|
319
|
+
return { width: box.width, height: Math.max(box.height, naturalHeight(menu)) };
|
|
316
320
|
}
|
|
317
321
|
function samePlacement(a, b) {
|
|
318
322
|
return a === b || a !== null && b !== null && Object.is(a.left, b.left) && Object.is(a.top, b.top) && Object.is(a.maxHeight, b.maxHeight);
|