@lace-cloud/canvas 0.36.0 → 0.37.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/{Canvas-VQQEZSPA.css → Canvas-UTKLP6WI.css} +32 -1
- package/dist/{CardActions-QLTNQUVW.css → CardActions-ORDC2L5Y.css} +4 -0
- package/dist/{ContextMenu-S3JIZMET.css → ContextMenu-P457V6QE.css} +1 -1
- package/dist/{GroupNode-NJOGOGQM.css → GroupNode-2IGAUA6V.css} +14 -5
- package/dist/{ModuleNode-LPPBJZCD.css → ModuleNode-3GTXKKVQ.css} +20 -20
- package/dist/NodeDropTarget-H5L3NZS6.css +15 -0
- package/dist/{chunk-XPHDFIKV.mjs → chunk-45ZS7XCZ.mjs} +190 -24
- package/dist/chunk-45ZS7XCZ.mjs.map +1 -0
- package/dist/engine/index.cjs +164 -23
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +21 -5
- package/dist/engine/index.d.ts +21 -5
- package/dist/engine/index.mjs +7 -3
- package/dist/index.cjs +1422 -891
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +51 -19
- package/dist/index.d.ts +51 -19
- package/dist/index.mjs +864 -490
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-Bflzqecd.d.mts → registry-4-XX1MRe.d.mts} +63 -6
- package/dist/{registry-Bflzqecd.d.ts → registry-4-XX1MRe.d.ts} +63 -6
- package/package.json +5 -5
- package/dist/chunk-XPHDFIKV.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView } from '@lace-cloud/proto';
|
|
1
|
+
import { EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, Diagnostic as Diagnostic$1, CanvasArrangement, XY, CanvasView } from '@lace-cloud/proto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
4
4
|
|
|
@@ -157,6 +157,8 @@ declare enum Reason {
|
|
|
157
157
|
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
158
158
|
*/
|
|
159
159
|
REASON_NO_LOCKFILE = 22,
|
|
160
|
+
/** REASON_NO_COMMIT - stack create --source: the directory's repository has no commit yet. */
|
|
161
|
+
REASON_NO_COMMIT = 23,
|
|
160
162
|
UNRECOGNIZED = -1
|
|
161
163
|
}
|
|
162
164
|
|
|
@@ -876,8 +878,8 @@ declare const ApplyActionRequest: MessageFns<ApplyActionRequest>;
|
|
|
876
878
|
* two instances of one module: `source_instance`'s `output` could feed
|
|
877
879
|
* `target_instance`'s `input`, a required input with no binding. `score`
|
|
878
880
|
* is the matcher's: 100 for the same name, 90 for the same last
|
|
879
|
-
* `_`-separated word, 50 when one name contains the other
|
|
880
|
-
*
|
|
881
|
+
* `_`-separated word, 50 when one name contains the other; a pair that
|
|
882
|
+
* scores nothing is no candidate.
|
|
881
883
|
*/
|
|
882
884
|
interface WiringCandidate$1 {
|
|
883
885
|
source_instance: string;
|
|
@@ -1198,6 +1200,11 @@ interface CreatedRef$1 {
|
|
|
1198
1200
|
* the source child ID. Empty otherwise.
|
|
1199
1201
|
*/
|
|
1200
1202
|
source_id: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Set when the child was promoted out of a dissolved group (ungroup): the
|
|
1205
|
+
* group's id in `scope`, which with source_id names the child. Empty otherwise.
|
|
1206
|
+
*/
|
|
1207
|
+
group_id: string;
|
|
1201
1208
|
}
|
|
1202
1209
|
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
1203
1210
|
/**
|
|
@@ -2648,6 +2655,24 @@ declare const COMMANDS: {
|
|
|
2648
2655
|
readonly hidden: false;
|
|
2649
2656
|
readonly yes: false;
|
|
2650
2657
|
};
|
|
2658
|
+
readonly "stack validate": {
|
|
2659
|
+
readonly path: "stack validate";
|
|
2660
|
+
readonly positionals: readonly [];
|
|
2661
|
+
readonly flags: {
|
|
2662
|
+
readonly output: {
|
|
2663
|
+
readonly type: "string";
|
|
2664
|
+
readonly values: readonly ["table", "json"];
|
|
2665
|
+
readonly short: "o";
|
|
2666
|
+
};
|
|
2667
|
+
readonly source: {
|
|
2668
|
+
readonly type: "string";
|
|
2669
|
+
readonly required: true;
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
readonly effect: "read";
|
|
2673
|
+
readonly hidden: false;
|
|
2674
|
+
readonly yes: false;
|
|
2675
|
+
};
|
|
2651
2676
|
readonly "team current": {
|
|
2652
2677
|
readonly path: "team current";
|
|
2653
2678
|
readonly positionals: readonly [];
|
|
@@ -3722,6 +3747,12 @@ declare const SCHEMAS: {
|
|
|
3722
3747
|
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
3723
3748
|
}, z.core.$strip>>;
|
|
3724
3749
|
}, z.core.$strip>;
|
|
3750
|
+
'stack validate': z.ZodObject<{
|
|
3751
|
+
kind: z.ZodLiteral<"git">;
|
|
3752
|
+
repoUrl: z.ZodString;
|
|
3753
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3754
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3755
|
+
}, z.core.$strip>;
|
|
3725
3756
|
'module import': z.ZodObject<{
|
|
3726
3757
|
changed: z.ZodBoolean;
|
|
3727
3758
|
written: z.ZodArray<z.ZodString>;
|
|
@@ -4170,6 +4201,8 @@ type CreatedRef = {
|
|
|
4170
4201
|
id: string;
|
|
4171
4202
|
moduleKey: string;
|
|
4172
4203
|
sourceId: string;
|
|
4204
|
+
/** The group the child was promoted out of by an ungroup, in `scope`; empty otherwise. */
|
|
4205
|
+
groupId: string;
|
|
4173
4206
|
};
|
|
4174
4207
|
/**
|
|
4175
4208
|
* One output → input pair the engine's matcher scores between two instances
|
|
@@ -4304,6 +4337,20 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4304
4337
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4305
4338
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4306
4339
|
|
|
4340
|
+
type DissolvedGroup = {
|
|
4341
|
+
path: string;
|
|
4342
|
+
moduleKey: string;
|
|
4343
|
+
at: XY;
|
|
4344
|
+
collapsed: boolean;
|
|
4345
|
+
};
|
|
4346
|
+
type Dissolution = {
|
|
4347
|
+
state: 'done' | 'undone';
|
|
4348
|
+
groups: readonly DissolvedGroup[];
|
|
4349
|
+
deleted: readonly string[];
|
|
4350
|
+
created: readonly CreatedRef[];
|
|
4351
|
+
content: unknown;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4307
4354
|
/** The keys an action may bind with no modifier. */
|
|
4308
4355
|
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4309
4356
|
type BareKey = (typeof BARE_KEYS)[number];
|
|
@@ -4320,7 +4367,7 @@ type CanvasSelection = {
|
|
|
4320
4367
|
nodes: readonly string[];
|
|
4321
4368
|
edges: readonly string[];
|
|
4322
4369
|
};
|
|
4323
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.oneScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4370
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.oneScope' | 'selection.edge' | 'selection.edges' | 'selection.disconnectable' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4324
4371
|
type RunCtx = {
|
|
4325
4372
|
root?: string;
|
|
4326
4373
|
sessionId?: string;
|
|
@@ -4415,6 +4462,12 @@ type CommandBinding<P extends BoundPath> = {
|
|
|
4415
4462
|
kind: ResultFor<P>;
|
|
4416
4463
|
};
|
|
4417
4464
|
invalidates?: true | 'start+settle';
|
|
4465
|
+
preflight?: {
|
|
4466
|
+
[Q in BoundPath]: {
|
|
4467
|
+
path: Q;
|
|
4468
|
+
args: (ctx: RunCtx, target: ActionTarget) => Partial<ArgsOf<Q>>;
|
|
4469
|
+
};
|
|
4470
|
+
}[BoundPath];
|
|
4418
4471
|
};
|
|
4419
4472
|
type ClipboardStore = {
|
|
4420
4473
|
get: () => {
|
|
@@ -4443,6 +4496,7 @@ type EditorEnv = {
|
|
|
4443
4496
|
get: () => CanvasArrangement;
|
|
4444
4497
|
update: (a: CanvasArrangement) => void;
|
|
4445
4498
|
};
|
|
4499
|
+
dissolved?: (dissolution: Dissolution) => void;
|
|
4446
4500
|
layout: LayoutHandle;
|
|
4447
4501
|
};
|
|
4448
4502
|
type EditorBinding = {
|
|
@@ -4470,8 +4524,10 @@ type ErasedCommand = {
|
|
|
4470
4524
|
confirms: boolean;
|
|
4471
4525
|
resultKind: ResultKind;
|
|
4472
4526
|
invalidates?: true | 'start+settle';
|
|
4527
|
+
preflightPath?: BoundPath;
|
|
4473
4528
|
partialArgs: (ctx: RunCtx, target: ActionTarget) => Record<string, unknown>;
|
|
4474
4529
|
confirmSpec: (ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>) => ConfirmSpec | undefined;
|
|
4530
|
+
preflight: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget, signal: AbortSignal) => Promise<boolean>;
|
|
4475
4531
|
start: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>, signal: AbortSignal) => Promise<{
|
|
4476
4532
|
cancel: () => Promise<void>;
|
|
4477
4533
|
} | null>;
|
|
@@ -4710,6 +4766,7 @@ type CommandRun = {
|
|
|
4710
4766
|
};
|
|
4711
4767
|
type ActionRunnerOptions = {
|
|
4712
4768
|
onPendingFormChange?(form: PendingForm): void;
|
|
4769
|
+
onDissolved?(dissolution: Dissolution): void;
|
|
4713
4770
|
onRunLog?(line: string, run: CommandRun): void;
|
|
4714
4771
|
};
|
|
4715
4772
|
declare function createActionRunner(ports: RunnerPorts, store: ResultStore, options?: ActionRunnerOptions): ActionRunner;
|
|
@@ -4721,5 +4778,5 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4721
4778
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4722
4779
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4723
4780
|
|
|
4724
|
-
export { COMMANDS as C, EMPTY_REPORT_FOLD as E, GENERATE_STAGES as O, InputMode as W, Action as a, Reason as a4, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, diagnosticsOfDocument as aG, failureSays as aH, foldReport as aI, generatedTree as aJ, isBoundPath as aK, liveSlots as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reasonWire as aQ, reduceFollow as aR, reducePreview as aS, reduceReport as aT, reduceRun as aU, reportDiagnostics as aV, settleRun as aW, toArgv as aX, uniqueDiagnostics as aY, SCHEMAS as aj, answering as av, bridgeCaller as aw, carriesFailure as ax, commandPathOf as ay, commandUnderWay as az, Bundle as
|
|
4725
|
-
export type { PendingForm as $, ActionContribution as A, BindingRuntime as B, DirectEngineCaller as D, EditorPort as F, EngineCaller as G, EngineMethodResponse as H, EngineSession as I, JsonOf as J, EngineSessionOptions as K, EngineTarget as L, ErasedCommand as M, FollowSlot as N, GateChangeRequest as P, GenerateEvent as Q, GenerateStage as R, SourcePort as S, GeneratedTree as T, GraphError as U, HostBinding as V, Invocation as X, LaceReason as Y, LiveSlots as Z, OnScreen as _, CanvasCtx as a$, PortName as a0, PresenterPort as a1, PreviewOutcome as a2, PreviewSlot as a3, ReportEntry as a5, ReportFold as a6, ReportPath as a7, ReportSlot as a8, ResultKind as a9, ContributionSet as aZ, PanelSpec as a_, ResultSlots as aa, ResultStore as ab, RunCtx as ac, RunOutcome as ad, RunSlot as ae, RunStage as af, RunStageStatus as ag, RunnerPorts as ah, RunningMark as ai, Sink as ak, SinkInput as al, SlotContext as am, SlotKind as an, SourceConflict as ao, SourceEnd as ap, StackRef as aq, Started as ar, ViewStatePort as as, WiringCandidate as at, WiringQuery as au, ActionRunner as b, Badge as b0, NodeDecoration as b1, Decorations as b2, CommandRead as
|
|
4781
|
+
export { COMMANDS as C, EMPTY_REPORT_FOLD as E, GENERATE_STAGES as O, InputMode as W, Action as a, Reason as a4, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, diagnosticsOfDocument as aG, failureSays as aH, foldReport as aI, generatedTree as aJ, isBoundPath as aK, liveSlots as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reasonWire as aQ, reduceFollow as aR, reducePreview as aS, reduceReport as aT, reduceRun as aU, reportDiagnostics as aV, settleRun as aW, toArgv as aX, uniqueDiagnostics as aY, SCHEMAS as aj, answering as av, bridgeCaller as aw, carriesFailure as ax, commandPathOf as ay, commandUnderWay as az, Bundle as b3, disabledReason as bg, resolveContributions as bh, rowActions as bi, ApplyUnobservedError as f, CommandDetachedError as n, CommandExitError as o, CommandUnobservedError as t, ConnectError as x };
|
|
4782
|
+
export type { PendingForm as $, ActionContribution as A, BindingRuntime as B, DirectEngineCaller as D, EditorPort as F, EngineCaller as G, EngineMethodResponse as H, EngineSession as I, JsonOf as J, EngineSessionOptions as K, EngineTarget as L, ErasedCommand as M, FollowSlot as N, GateChangeRequest as P, GenerateEvent as Q, GenerateStage as R, SourcePort as S, GeneratedTree as T, GraphError as U, HostBinding as V, Invocation as X, LaceReason as Y, LiveSlots as Z, OnScreen as _, CanvasCtx as a$, PortName as a0, PresenterPort as a1, PreviewOutcome as a2, PreviewSlot as a3, ReportEntry as a5, ReportFold as a6, ReportPath as a7, ReportSlot as a8, ResultKind as a9, ContributionSet as aZ, PanelSpec as a_, ResultSlots as aa, ResultStore as ab, RunCtx as ac, RunOutcome as ad, RunSlot as ae, RunStage as af, RunStageStatus as ag, RunnerPorts as ah, RunningMark as ai, Sink as ak, SinkInput as al, SlotContext as am, SlotKind as an, SourceConflict as ao, SourceEnd as ap, StackRef as aq, Started as ar, ViewStatePort as as, WiringCandidate as at, WiringQuery as au, ActionRunner as b, Badge as b0, NodeDecoration as b1, Decorations as b2, CommandRead as b4, OverlayContribution as b5, CanvasSelection as b6, LayoutHandle as b7, ActionIcon as b8, ClipboardStore as b9, ContextKey as ba, EditorBinding as bb, EditorEnv as bc, EditorEnvExtras as bd, KeySpec as be, Placement as bf, ActionRunnerOptions as c, ActionTarget as d, ApplyResult as e, ArgsOf as g, BoundPath as h, BridgeEngineCaller as i, Busy as j, CanvasPorts as k, CanvasSource as l, CommandBinding as m, CommandFailure as p, CommandPath as q, CommandResult as r, CommandRun as s, CommandsPort as u, ConfirmSpec as v, ConnectCallerOptions as w, ContextPort as y, CreatedRef as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView } from '@lace-cloud/proto';
|
|
1
|
+
import { EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, Diagnostic as Diagnostic$1, CanvasArrangement, XY, CanvasView } from '@lace-cloud/proto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
4
4
|
|
|
@@ -157,6 +157,8 @@ declare enum Reason {
|
|
|
157
157
|
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
158
158
|
*/
|
|
159
159
|
REASON_NO_LOCKFILE = 22,
|
|
160
|
+
/** REASON_NO_COMMIT - stack create --source: the directory's repository has no commit yet. */
|
|
161
|
+
REASON_NO_COMMIT = 23,
|
|
160
162
|
UNRECOGNIZED = -1
|
|
161
163
|
}
|
|
162
164
|
|
|
@@ -876,8 +878,8 @@ declare const ApplyActionRequest: MessageFns<ApplyActionRequest>;
|
|
|
876
878
|
* two instances of one module: `source_instance`'s `output` could feed
|
|
877
879
|
* `target_instance`'s `input`, a required input with no binding. `score`
|
|
878
880
|
* is the matcher's: 100 for the same name, 90 for the same last
|
|
879
|
-
* `_`-separated word, 50 when one name contains the other
|
|
880
|
-
*
|
|
881
|
+
* `_`-separated word, 50 when one name contains the other; a pair that
|
|
882
|
+
* scores nothing is no candidate.
|
|
881
883
|
*/
|
|
882
884
|
interface WiringCandidate$1 {
|
|
883
885
|
source_instance: string;
|
|
@@ -1198,6 +1200,11 @@ interface CreatedRef$1 {
|
|
|
1198
1200
|
* the source child ID. Empty otherwise.
|
|
1199
1201
|
*/
|
|
1200
1202
|
source_id: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Set when the child was promoted out of a dissolved group (ungroup): the
|
|
1205
|
+
* group's id in `scope`, which with source_id names the child. Empty otherwise.
|
|
1206
|
+
*/
|
|
1207
|
+
group_id: string;
|
|
1201
1208
|
}
|
|
1202
1209
|
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
1203
1210
|
/**
|
|
@@ -2648,6 +2655,24 @@ declare const COMMANDS: {
|
|
|
2648
2655
|
readonly hidden: false;
|
|
2649
2656
|
readonly yes: false;
|
|
2650
2657
|
};
|
|
2658
|
+
readonly "stack validate": {
|
|
2659
|
+
readonly path: "stack validate";
|
|
2660
|
+
readonly positionals: readonly [];
|
|
2661
|
+
readonly flags: {
|
|
2662
|
+
readonly output: {
|
|
2663
|
+
readonly type: "string";
|
|
2664
|
+
readonly values: readonly ["table", "json"];
|
|
2665
|
+
readonly short: "o";
|
|
2666
|
+
};
|
|
2667
|
+
readonly source: {
|
|
2668
|
+
readonly type: "string";
|
|
2669
|
+
readonly required: true;
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
readonly effect: "read";
|
|
2673
|
+
readonly hidden: false;
|
|
2674
|
+
readonly yes: false;
|
|
2675
|
+
};
|
|
2651
2676
|
readonly "team current": {
|
|
2652
2677
|
readonly path: "team current";
|
|
2653
2678
|
readonly positionals: readonly [];
|
|
@@ -3722,6 +3747,12 @@ declare const SCHEMAS: {
|
|
|
3722
3747
|
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
3723
3748
|
}, z.core.$strip>>;
|
|
3724
3749
|
}, z.core.$strip>;
|
|
3750
|
+
'stack validate': z.ZodObject<{
|
|
3751
|
+
kind: z.ZodLiteral<"git">;
|
|
3752
|
+
repoUrl: z.ZodString;
|
|
3753
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3754
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3755
|
+
}, z.core.$strip>;
|
|
3725
3756
|
'module import': z.ZodObject<{
|
|
3726
3757
|
changed: z.ZodBoolean;
|
|
3727
3758
|
written: z.ZodArray<z.ZodString>;
|
|
@@ -4170,6 +4201,8 @@ type CreatedRef = {
|
|
|
4170
4201
|
id: string;
|
|
4171
4202
|
moduleKey: string;
|
|
4172
4203
|
sourceId: string;
|
|
4204
|
+
/** The group the child was promoted out of by an ungroup, in `scope`; empty otherwise. */
|
|
4205
|
+
groupId: string;
|
|
4173
4206
|
};
|
|
4174
4207
|
/**
|
|
4175
4208
|
* One output → input pair the engine's matcher scores between two instances
|
|
@@ -4304,6 +4337,20 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4304
4337
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4305
4338
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4306
4339
|
|
|
4340
|
+
type DissolvedGroup = {
|
|
4341
|
+
path: string;
|
|
4342
|
+
moduleKey: string;
|
|
4343
|
+
at: XY;
|
|
4344
|
+
collapsed: boolean;
|
|
4345
|
+
};
|
|
4346
|
+
type Dissolution = {
|
|
4347
|
+
state: 'done' | 'undone';
|
|
4348
|
+
groups: readonly DissolvedGroup[];
|
|
4349
|
+
deleted: readonly string[];
|
|
4350
|
+
created: readonly CreatedRef[];
|
|
4351
|
+
content: unknown;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4307
4354
|
/** The keys an action may bind with no modifier. */
|
|
4308
4355
|
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4309
4356
|
type BareKey = (typeof BARE_KEYS)[number];
|
|
@@ -4320,7 +4367,7 @@ type CanvasSelection = {
|
|
|
4320
4367
|
nodes: readonly string[];
|
|
4321
4368
|
edges: readonly string[];
|
|
4322
4369
|
};
|
|
4323
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.oneScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4370
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.oneScope' | 'selection.edge' | 'selection.edges' | 'selection.disconnectable' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4324
4371
|
type RunCtx = {
|
|
4325
4372
|
root?: string;
|
|
4326
4373
|
sessionId?: string;
|
|
@@ -4415,6 +4462,12 @@ type CommandBinding<P extends BoundPath> = {
|
|
|
4415
4462
|
kind: ResultFor<P>;
|
|
4416
4463
|
};
|
|
4417
4464
|
invalidates?: true | 'start+settle';
|
|
4465
|
+
preflight?: {
|
|
4466
|
+
[Q in BoundPath]: {
|
|
4467
|
+
path: Q;
|
|
4468
|
+
args: (ctx: RunCtx, target: ActionTarget) => Partial<ArgsOf<Q>>;
|
|
4469
|
+
};
|
|
4470
|
+
}[BoundPath];
|
|
4418
4471
|
};
|
|
4419
4472
|
type ClipboardStore = {
|
|
4420
4473
|
get: () => {
|
|
@@ -4443,6 +4496,7 @@ type EditorEnv = {
|
|
|
4443
4496
|
get: () => CanvasArrangement;
|
|
4444
4497
|
update: (a: CanvasArrangement) => void;
|
|
4445
4498
|
};
|
|
4499
|
+
dissolved?: (dissolution: Dissolution) => void;
|
|
4446
4500
|
layout: LayoutHandle;
|
|
4447
4501
|
};
|
|
4448
4502
|
type EditorBinding = {
|
|
@@ -4470,8 +4524,10 @@ type ErasedCommand = {
|
|
|
4470
4524
|
confirms: boolean;
|
|
4471
4525
|
resultKind: ResultKind;
|
|
4472
4526
|
invalidates?: true | 'start+settle';
|
|
4527
|
+
preflightPath?: BoundPath;
|
|
4473
4528
|
partialArgs: (ctx: RunCtx, target: ActionTarget) => Record<string, unknown>;
|
|
4474
4529
|
confirmSpec: (ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>) => ConfirmSpec | undefined;
|
|
4530
|
+
preflight: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget, signal: AbortSignal) => Promise<boolean>;
|
|
4475
4531
|
start: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>, signal: AbortSignal) => Promise<{
|
|
4476
4532
|
cancel: () => Promise<void>;
|
|
4477
4533
|
} | null>;
|
|
@@ -4710,6 +4766,7 @@ type CommandRun = {
|
|
|
4710
4766
|
};
|
|
4711
4767
|
type ActionRunnerOptions = {
|
|
4712
4768
|
onPendingFormChange?(form: PendingForm): void;
|
|
4769
|
+
onDissolved?(dissolution: Dissolution): void;
|
|
4713
4770
|
onRunLog?(line: string, run: CommandRun): void;
|
|
4714
4771
|
};
|
|
4715
4772
|
declare function createActionRunner(ports: RunnerPorts, store: ResultStore, options?: ActionRunnerOptions): ActionRunner;
|
|
@@ -4721,5 +4778,5 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4721
4778
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4722
4779
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4723
4780
|
|
|
4724
|
-
export { COMMANDS as C, EMPTY_REPORT_FOLD as E, GENERATE_STAGES as O, InputMode as W, Action as a, Reason as a4, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, diagnosticsOfDocument as aG, failureSays as aH, foldReport as aI, generatedTree as aJ, isBoundPath as aK, liveSlots as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reasonWire as aQ, reduceFollow as aR, reducePreview as aS, reduceReport as aT, reduceRun as aU, reportDiagnostics as aV, settleRun as aW, toArgv as aX, uniqueDiagnostics as aY, SCHEMAS as aj, answering as av, bridgeCaller as aw, carriesFailure as ax, commandPathOf as ay, commandUnderWay as az, Bundle as
|
|
4725
|
-
export type { PendingForm as $, ActionContribution as A, BindingRuntime as B, DirectEngineCaller as D, EditorPort as F, EngineCaller as G, EngineMethodResponse as H, EngineSession as I, JsonOf as J, EngineSessionOptions as K, EngineTarget as L, ErasedCommand as M, FollowSlot as N, GateChangeRequest as P, GenerateEvent as Q, GenerateStage as R, SourcePort as S, GeneratedTree as T, GraphError as U, HostBinding as V, Invocation as X, LaceReason as Y, LiveSlots as Z, OnScreen as _, CanvasCtx as a$, PortName as a0, PresenterPort as a1, PreviewOutcome as a2, PreviewSlot as a3, ReportEntry as a5, ReportFold as a6, ReportPath as a7, ReportSlot as a8, ResultKind as a9, ContributionSet as aZ, PanelSpec as a_, ResultSlots as aa, ResultStore as ab, RunCtx as ac, RunOutcome as ad, RunSlot as ae, RunStage as af, RunStageStatus as ag, RunnerPorts as ah, RunningMark as ai, Sink as ak, SinkInput as al, SlotContext as am, SlotKind as an, SourceConflict as ao, SourceEnd as ap, StackRef as aq, Started as ar, ViewStatePort as as, WiringCandidate as at, WiringQuery as au, ActionRunner as b, Badge as b0, NodeDecoration as b1, Decorations as b2, CommandRead as
|
|
4781
|
+
export { COMMANDS as C, EMPTY_REPORT_FOLD as E, GENERATE_STAGES as O, InputMode as W, Action as a, Reason as a4, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, diagnosticsOfDocument as aG, failureSays as aH, foldReport as aI, generatedTree as aJ, isBoundPath as aK, liveSlots as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reasonWire as aQ, reduceFollow as aR, reducePreview as aS, reduceReport as aT, reduceRun as aU, reportDiagnostics as aV, settleRun as aW, toArgv as aX, uniqueDiagnostics as aY, SCHEMAS as aj, answering as av, bridgeCaller as aw, carriesFailure as ax, commandPathOf as ay, commandUnderWay as az, Bundle as b3, disabledReason as bg, resolveContributions as bh, rowActions as bi, ApplyUnobservedError as f, CommandDetachedError as n, CommandExitError as o, CommandUnobservedError as t, ConnectError as x };
|
|
4782
|
+
export type { PendingForm as $, ActionContribution as A, BindingRuntime as B, DirectEngineCaller as D, EditorPort as F, EngineCaller as G, EngineMethodResponse as H, EngineSession as I, JsonOf as J, EngineSessionOptions as K, EngineTarget as L, ErasedCommand as M, FollowSlot as N, GateChangeRequest as P, GenerateEvent as Q, GenerateStage as R, SourcePort as S, GeneratedTree as T, GraphError as U, HostBinding as V, Invocation as X, LaceReason as Y, LiveSlots as Z, OnScreen as _, CanvasCtx as a$, PortName as a0, PresenterPort as a1, PreviewOutcome as a2, PreviewSlot as a3, ReportEntry as a5, ReportFold as a6, ReportPath as a7, ReportSlot as a8, ResultKind as a9, ContributionSet as aZ, PanelSpec as a_, ResultSlots as aa, ResultStore as ab, RunCtx as ac, RunOutcome as ad, RunSlot as ae, RunStage as af, RunStageStatus as ag, RunnerPorts as ah, RunningMark as ai, Sink as ak, SinkInput as al, SlotContext as am, SlotKind as an, SourceConflict as ao, SourceEnd as ap, StackRef as aq, Started as ar, ViewStatePort as as, WiringCandidate as at, WiringQuery as au, ActionRunner as b, Badge as b0, NodeDecoration as b1, Decorations as b2, CommandRead as b4, OverlayContribution as b5, CanvasSelection as b6, LayoutHandle as b7, ActionIcon as b8, ClipboardStore as b9, ContextKey as ba, EditorBinding as bb, EditorEnv as bc, EditorEnvExtras as bd, KeySpec as be, Placement as bf, ActionRunnerOptions as c, ActionTarget as d, ApplyResult as e, ArgsOf as g, BoundPath as h, BridgeEngineCaller as i, Busy as j, CanvasPorts as k, CanvasSource as l, CommandBinding as m, CommandFailure as p, CommandPath as q, CommandResult as r, CommandRun as s, CommandsPort as u, ConfirmSpec as v, ConnectCallerOptions as w, ContextPort as y, CreatedRef as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"lace": {
|
|
5
5
|
"owner": "authoring"
|
|
6
6
|
},
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"react": "^18.3.1",
|
|
27
27
|
"react-dom": "^18.3.1",
|
|
28
28
|
"zod": "^4.1.11",
|
|
29
|
-
"@lace-cloud/
|
|
30
|
-
"@lace-cloud/
|
|
29
|
+
"@lace-cloud/proto": "0.37.0",
|
|
30
|
+
"@lace-cloud/ui": "0.37.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@size-limit/file": "12.1.0",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"typescript": "^6.0.2",
|
|
40
40
|
"vitest": "^4.1.0",
|
|
41
41
|
"@lace-cloud/api-types": "0.0.0",
|
|
42
|
-
"@lace-cloud/
|
|
43
|
-
"@lace-cloud/
|
|
42
|
+
"@lace-cloud/import-graph": "0.0.0",
|
|
43
|
+
"@lace-cloud/cast-ban-scanner": "0.0.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"registry": "https://registry.npmjs.org",
|