@lace-cloud/canvas 0.21.0 → 0.21.1
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-W6U3TVQK.mjs → chunk-TPJXMHYN.mjs} +1 -1
- package/dist/chunk-TPJXMHYN.mjs.map +1 -0
- 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 +9 -1
- 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 +12 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-CopjG8Ae.d.mts → mapping-REUTGeUE.d.mts} +2 -2
- package/dist/{mapping-CopjG8Ae.d.ts → mapping-REUTGeUE.d.ts} +2 -2
- package/package.json +3 -3
- package/dist/chunk-W6U3TVQK.mjs.map +0 -1
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-
|
|
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-
|
|
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';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
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-
|
|
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-
|
|
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';
|
|
9
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@bufbuild/protobuf/wire';
|
package/dist/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
rowActions,
|
|
34
34
|
toArgv,
|
|
35
35
|
uniqueDiagnostics
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TPJXMHYN.mjs";
|
|
37
37
|
|
|
38
38
|
// src/index.ts
|
|
39
39
|
import { projectCanvasView as projectCanvasView2 } from "@lace-cloud/proto";
|
|
@@ -1470,7 +1470,8 @@ import {
|
|
|
1470
1470
|
import {
|
|
1471
1471
|
Handle as Handle2,
|
|
1472
1472
|
Position as Position2,
|
|
1473
|
-
useStore as useStore3
|
|
1473
|
+
useStore as useStore3,
|
|
1474
|
+
useUpdateNodeInternals
|
|
1474
1475
|
} from "@xyflow/react";
|
|
1475
1476
|
import { useCallback as useCallback2, useEffect as useEffect4, useMemo, useRef as useRef4, useState as useState5 } from "react";
|
|
1476
1477
|
|
|
@@ -1720,6 +1721,14 @@ var ModuleNode = ({ id, data }) => {
|
|
|
1720
1721
|
hiddenInputCount: inputs.length - visible.length
|
|
1721
1722
|
};
|
|
1722
1723
|
}, [inputs, showAllInputs]);
|
|
1724
|
+
const updateNodeInternals = useUpdateNodeInternals();
|
|
1725
|
+
const drawnHandles = [
|
|
1726
|
+
...shownInputs.map((pin) => `in:${pin.name}`),
|
|
1727
|
+
...outputs.map((pin) => sourceHandleId(pin.name))
|
|
1728
|
+
].join("|");
|
|
1729
|
+
useEffect4(() => {
|
|
1730
|
+
updateNodeInternals(id);
|
|
1731
|
+
}, [id, drawnHandles, updateNodeInternals]);
|
|
1723
1732
|
const onDoubleClick = useCallback2(
|
|
1724
1733
|
(e) => {
|
|
1725
1734
|
if (!editable) return;
|
|
@@ -2096,7 +2105,7 @@ function useFocusWhenNoneHeld(root, mounted) {
|
|
|
2096
2105
|
element.focus({ preventScroll: true });
|
|
2097
2106
|
}
|
|
2098
2107
|
};
|
|
2099
|
-
takeFocus();
|
|
2108
|
+
if (doc.hasFocus()) takeFocus();
|
|
2100
2109
|
const view = doc.defaultView;
|
|
2101
2110
|
view?.addEventListener("focus", takeFocus);
|
|
2102
2111
|
return () => view?.removeEventListener("focus", takeFocus);
|