@lace-cloud/canvas 0.40.0 → 0.42.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.
@@ -1,7 +1,7 @@
1
1
  import { RenderEdge } from '@lace-cloud/proto';
2
2
  export { Reason } from '@lace-cloud/proto';
3
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-C1v_atT4.mjs';
4
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, 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, 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, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, 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, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, 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, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-C1v_atT4.mjs';
3
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-DyBS0aH8.mjs';
4
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, 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, 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, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, 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, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, 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, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-DyBS0aH8.mjs';
5
5
  import 'zod';
6
6
  import '@bufbuild/protobuf/wire';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { RenderEdge } from '@lace-cloud/proto';
2
2
  export { Reason } from '@lace-cloud/proto';
3
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-C1v_atT4.js';
4
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, 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, 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, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, 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, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, 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, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-C1v_atT4.js';
3
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-DyBS0aH8.js';
4
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, 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, 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, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, 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, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, 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, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-DyBS0aH8.js';
5
5
  import 'zod';
6
6
  import '@bufbuild/protobuf/wire';
7
7
 
@@ -47,7 +47,7 @@ import {
47
47
  settleRun,
48
48
  stackSlugRule,
49
49
  wireEndText
50
- } from "../chunk-TGXBVAPM.mjs";
50
+ } from "../chunk-QH7BZCFZ.mjs";
51
51
  export {
52
52
  ApplyUnobservedError,
53
53
  AutosaveEndedError,
package/dist/index.cjs CHANGED
@@ -599,8 +599,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
599
599
  var atPoint = (x, y) => ({ left: x, right: x, top: y, bottom: y });
600
600
  function naturalSize(menu) {
601
601
  const box = menu.getBoundingClientRect();
602
- const borders = menu.offsetHeight - menu.clientHeight;
603
- return { width: box.width, height: Math.max(box.height, menu.scrollHeight + borders) };
602
+ return { width: box.width, height: Math.max(box.height, (0, import_ui3.naturalHeight)(menu)) };
604
603
  }
605
604
  function samePlacement(a, b) {
606
605
  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);
@@ -11899,9 +11898,6 @@ var COMMANDS = {
11899
11898
  },
11900
11899
  "wait": {
11901
11900
  "type": "bool"
11902
- },
11903
- "waitTimeout": {
11904
- "type": "duration"
11905
11901
  }
11906
11902
  },
11907
11903
  "effect": "write",