@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.
@@ -1,5 +1,5 @@
1
- import { A as ActionContribution, S as SourcePort } from '../mapping-CopjG8Ae.mjs';
2
- export { aP as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, 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, aQ as InputMode, a8 as Invocation, J as JsonOf, aR as LaceReason, aS as LiveSlots, aT as OnScreen, c as PendingForm, 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, R as ResultStore, j as RunCtx, al as RunOutcome, aU as RunPhase, aV as RunPhaseStatus, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, i as SourceEnd, 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, aW as diagnosticsOfDocument, aG as foldReport, aH as isBoundPath, aX as liveSlots, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aY as reasonWire, aZ as reduceFollow, a_ as reducePreview, a$ as reduceReport, b0 as reduceRun, aM as reportDiagnostics, b1 as settleRun, aN as toArgv, aO as uniqueDiagnostics } from '../mapping-CopjG8Ae.mjs';
1
+ import { A as ActionContribution, S as SourcePort } from '../mapping-REUTGeUE.mjs';
2
+ export { aP as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, 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, aQ as InputMode, a8 as Invocation, J as JsonOf, aR as LaceReason, aS as LiveSlots, aT as OnScreen, c as PendingForm, 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, R as ResultStore, j as RunCtx, al as RunOutcome, aU as RunPhase, aV as RunPhaseStatus, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, i as SourceEnd, 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, aW as diagnosticsOfDocument, aG as foldReport, aH as isBoundPath, aX as liveSlots, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aY as reasonWire, aZ as reduceFollow, a_ as reducePreview, a$ as reduceReport, b0 as reduceRun, aM as reportDiagnostics, b1 as settleRun, aN as toArgv, aO as uniqueDiagnostics } from '../mapping-REUTGeUE.mjs';
3
3
  import '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -1,5 +1,5 @@
1
- import { A as ActionContribution, S as SourcePort } from '../mapping-CopjG8Ae.js';
2
- export { aP as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, 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, aQ as InputMode, a8 as Invocation, J as JsonOf, aR as LaceReason, aS as LiveSlots, aT as OnScreen, c as PendingForm, 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, R as ResultStore, j as RunCtx, al as RunOutcome, aU as RunPhase, aV as RunPhaseStatus, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, i as SourceEnd, 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, aW as diagnosticsOfDocument, aG as foldReport, aH as isBoundPath, aX as liveSlots, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aY as reasonWire, aZ as reduceFollow, a_ as reducePreview, a$ as reduceReport, b0 as reduceRun, aM as reportDiagnostics, b1 as settleRun, aN as toArgv, aO as uniqueDiagnostics } from '../mapping-CopjG8Ae.js';
1
+ import { A as ActionContribution, S as SourcePort } from '../mapping-REUTGeUE.js';
2
+ export { aP as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, 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, aQ as InputMode, a8 as Invocation, J as JsonOf, aR as LaceReason, aS as LiveSlots, aT as OnScreen, c as PendingForm, 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, R as ResultStore, j as RunCtx, al as RunOutcome, aU as RunPhase, aV as RunPhaseStatus, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, i as SourceEnd, 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, aW as diagnosticsOfDocument, aG as foldReport, aH as isBoundPath, aX as liveSlots, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aY as reasonWire, aZ as reduceFollow, a_ as reducePreview, a$ as reduceReport, b0 as reduceRun, aM as reportDiagnostics, b1 as settleRun, aN as toArgv, aO as uniqueDiagnostics } from '../mapping-REUTGeUE.js';
3
3
  import '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -36,7 +36,7 @@ import {
36
36
  settleRun,
37
37
  toArgv,
38
38
  uniqueDiagnostics
39
- } from "../chunk-W6U3TVQK.mjs";
39
+ } from "../chunk-TPJXMHYN.mjs";
40
40
  export {
41
41
  ApplyUnobservedError,
42
42
  AutosaveEndedError,
package/dist/index.cjs CHANGED
@@ -11958,6 +11958,14 @@ var ModuleNode = ({ id, data }) => {
11958
11958
  hiddenInputCount: inputs.length - visible.length
11959
11959
  };
11960
11960
  }, [inputs, showAllInputs]);
11961
+ const updateNodeInternals = (0, import_react11.useUpdateNodeInternals)();
11962
+ const drawnHandles = [
11963
+ ...shownInputs.map((pin) => `in:${pin.name}`),
11964
+ ...outputs.map((pin) => sourceHandleId(pin.name))
11965
+ ].join("|");
11966
+ (0, import_react12.useEffect)(() => {
11967
+ updateNodeInternals(id);
11968
+ }, [id, drawnHandles, updateNodeInternals]);
11961
11969
  const onDoubleClick = (0, import_react12.useCallback)(
11962
11970
  (e) => {
11963
11971
  if (!editable) return;
@@ -12334,7 +12342,7 @@ function useFocusWhenNoneHeld(root, mounted) {
12334
12342
  element.focus({ preventScroll: true });
12335
12343
  }
12336
12344
  };
12337
- takeFocus();
12345
+ if (doc.hasFocus()) takeFocus();
12338
12346
  const view = doc.defaultView;
12339
12347
  view?.addEventListener("focus", takeFocus);
12340
12348
  return () => view?.removeEventListener("focus", takeFocus);