@lace-cloud/canvas 0.29.0 → 0.30.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/{AccordionSection-J3ALHB5M.css → AccordionSection-5X2XWUYY.css} +9 -2
- package/dist/BadgeRow-KVODWDQK.css +23 -0
- package/dist/{ContextMenu-C7SLX23S.css → ContextMenu-S3JIZMET.css} +11 -0
- package/dist/{DiagnosticsPanel-T6VDHH4A.css → DiagnosticsPanel-MSK72CGM.css} +3 -1
- package/dist/{GroupNode-QWSLBFCH.css → GroupNode-FXLQCVAE.css} +0 -38
- package/dist/{ModuleConfigPanel-ZMWRMN5N.css → ModuleConfigPanel-DW3RSOEL.css} +6 -0
- package/dist/{ModuleNode-RRZ37SFM.css → ModuleNode-PPAN7NLP.css} +15 -37
- package/dist/{chunk-ASG36ZXQ.mjs → chunk-A3ATETIA.mjs} +172 -25
- package/dist/chunk-A3ATETIA.mjs.map +1 -0
- package/dist/engine/index.cjs +161 -23
- 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 +5 -1
- package/dist/index.cjs +1787 -1590
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -23
- package/dist/index.d.ts +15 -23
- package/dist/index.mjs +1385 -1325
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-5JFNYXQ7.css → panels-shared-3HUQC7TC.css} +20 -2
- package/dist/{registry-CuZ4kEQJ.d.mts → registry-C8fUGD44.d.mts} +50 -20
- package/dist/{registry-CuZ4kEQJ.d.ts → registry-C8fUGD44.d.ts} +50 -20
- package/package.json +3 -3
- package/dist/chunk-ASG36ZXQ.mjs.map +0 -1
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* A panel's content fits the column the canvas gives it (260 px for the
|
|
9
9
|
* settings panel, 300 px for an inspector): the frame breaks long
|
|
10
10
|
* identifiers anywhere (`overflow-wrap: anywhere` on @lace-cloud/ui's
|
|
11
|
-
* `.lace-panel`, inherited), every row of controls wraps
|
|
12
|
-
* children may shrink below their content's width. */
|
|
11
|
+
* `.lace-panel`, inherited), every row of controls wraps but a field's own
|
|
12
|
+
* row, and a row's children may shrink below their content's width. */
|
|
13
13
|
|
|
14
14
|
/* A heading inside a section (Interface > Inputs, Outputs): the same small
|
|
15
15
|
* capitals as the section heads (AccordionSection.css), so the drawer has
|
|
@@ -64,6 +64,24 @@
|
|
|
64
64
|
align-items: stretch;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/* A row's fields and the control that removes them: one row that never
|
|
68
|
+
* wraps, its fields (its name, its inputs) sharing the room the control
|
|
69
|
+
* leaves. */
|
|
70
|
+
.lace-panel-row-actions--field {
|
|
71
|
+
flex-wrap: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.lace-panel-row-actions--field > * {
|
|
75
|
+
flex: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.lace-panel-row-actions--field > :first-child,
|
|
79
|
+
.lace-panel-row-actions--field > .lace-input,
|
|
80
|
+
.lace-panel-row-actions--field > .lace-input-field {
|
|
81
|
+
flex: 1 1 auto;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
67
85
|
.lace-panel-hint {
|
|
68
86
|
margin-bottom: var(--lace-space-4);
|
|
69
87
|
color: var(--lace-color-text-muted);
|
|
@@ -1685,7 +1685,19 @@ interface SessionGenerateRequest {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1687
1687
|
interface SessionGenerateResponse {
|
|
1688
|
+
/**
|
|
1689
|
+
* Every file the write produced, sorted: Generate writes the whole
|
|
1690
|
+
* render, whatever bytes a file held before. Empty when nothing was
|
|
1691
|
+
* ungenerated.
|
|
1692
|
+
*/
|
|
1688
1693
|
files_written: string[];
|
|
1694
|
+
/**
|
|
1695
|
+
* The files of files_written whose bytes differ from the tree the write
|
|
1696
|
+
* replaced, a file the tree did not hold included, sorted.
|
|
1697
|
+
*/
|
|
1698
|
+
files_changed: string[];
|
|
1699
|
+
/** The source tf the write deleted, sorted. */
|
|
1700
|
+
files_removed: string[];
|
|
1689
1701
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
1690
1702
|
validate_json: string;
|
|
1691
1703
|
/**
|
|
@@ -2146,7 +2158,10 @@ interface GenerateProgress {
|
|
|
2146
2158
|
}
|
|
2147
2159
|
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
2148
2160
|
interface GenerateSuccess {
|
|
2161
|
+
/** The three file lists of the Generate's own SessionGenerateResponse. */
|
|
2149
2162
|
files_written: string[];
|
|
2163
|
+
files_changed: string[];
|
|
2164
|
+
files_removed: string[];
|
|
2150
2165
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
2151
2166
|
validate_json: string;
|
|
2152
2167
|
/** the Generate this event belongs to */
|
|
@@ -3943,7 +3958,7 @@ type CanvasSource = {
|
|
|
3943
3958
|
ungenerated: boolean;
|
|
3944
3959
|
conflict: SourceConflict | null;
|
|
3945
3960
|
sourceRefused: boolean;
|
|
3946
|
-
generating:
|
|
3961
|
+
generating: GenerateStage | false;
|
|
3947
3962
|
diagnostics: readonly Diagnostic$1[];
|
|
3948
3963
|
treeHash: string;
|
|
3949
3964
|
};
|
|
@@ -3961,18 +3976,31 @@ type SourceEnd = {
|
|
|
3961
3976
|
type SourcePort = {
|
|
3962
3977
|
subscribe: (on: (s: CanvasSource) => void, onEnd: (end: SourceEnd) => void, onCommandResult?: (result: CommandResult) => void) => () => void;
|
|
3963
3978
|
};
|
|
3979
|
+
declare const GENERATE_STAGES: readonly ["generating", "validating"];
|
|
3980
|
+
type GenerateStage = (typeof GENERATE_STAGES)[number];
|
|
3964
3981
|
type GenerateEvent = {
|
|
3965
3982
|
type: 'progress';
|
|
3966
|
-
stage:
|
|
3983
|
+
stage: GenerateStage;
|
|
3967
3984
|
} | {
|
|
3968
3985
|
type: 'success';
|
|
3969
3986
|
written: string[];
|
|
3987
|
+
changed: string[];
|
|
3988
|
+
removed: string[];
|
|
3970
3989
|
validate: JsonOf<'module validate'>;
|
|
3971
3990
|
} | {
|
|
3972
3991
|
type: 'error';
|
|
3973
3992
|
message: string;
|
|
3974
3993
|
reason: Reason;
|
|
3975
3994
|
};
|
|
3995
|
+
type GeneratedTree = {
|
|
3996
|
+
changed: readonly string[];
|
|
3997
|
+
removed: readonly string[];
|
|
3998
|
+
unchanged: number;
|
|
3999
|
+
treeChanged: boolean;
|
|
4000
|
+
};
|
|
4001
|
+
declare function generatedTree({ written, changed, removed, }: Extract<GenerateEvent, {
|
|
4002
|
+
type: 'success';
|
|
4003
|
+
}>): GeneratedTree;
|
|
3976
4004
|
/**
|
|
3977
4005
|
* A refusal of a batch's content reported by `ApplyAction`. Mirrors the wire
|
|
3978
4006
|
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
@@ -4102,19 +4130,20 @@ type CanvasPorts = RunnerPorts & {
|
|
|
4102
4130
|
};
|
|
4103
4131
|
type PortName = keyof CanvasPorts;
|
|
4104
4132
|
|
|
4105
|
-
/** The
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
type
|
|
4133
|
+
/** The keys an action may bind with no modifier. */
|
|
4134
|
+
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4135
|
+
type BareKey = (typeof BARE_KEYS)[number];
|
|
4136
|
+
/** The type an action's `keys` hold: a key that starts with `Mod+`, or a
|
|
4137
|
+
* bare key. The `Mod+` arm is the grammar's prefix check alone — the type
|
|
4138
|
+
* cannot spell an optional `Shift` then one key — and `parseChord` refuses
|
|
4139
|
+
* the rest at runtime. */
|
|
4140
|
+
type KeySpec = `Mod+${string}` | BareKey;
|
|
4109
4141
|
|
|
4110
|
-
type
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
target: string;
|
|
4114
|
-
sourceOutput: string;
|
|
4115
|
-
targetInput: string;
|
|
4142
|
+
type CanvasSelection = {
|
|
4143
|
+
nodes: readonly string[];
|
|
4144
|
+
edges: readonly string[];
|
|
4116
4145
|
};
|
|
4117
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4146
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4118
4147
|
type RunCtx = {
|
|
4119
4148
|
root?: string;
|
|
4120
4149
|
sessionId?: string;
|
|
@@ -4123,13 +4152,10 @@ type RunCtx = {
|
|
|
4123
4152
|
type CanvasCtx = RunCtx & {
|
|
4124
4153
|
ports: CanvasPorts;
|
|
4125
4154
|
editable: boolean;
|
|
4126
|
-
generating:
|
|
4155
|
+
generating: GenerateStage | false;
|
|
4127
4156
|
sourceRefused: boolean;
|
|
4128
4157
|
view: CanvasView;
|
|
4129
|
-
selection:
|
|
4130
|
-
nodes: readonly string[];
|
|
4131
|
-
edge: EdgeRef | null;
|
|
4132
|
-
};
|
|
4158
|
+
selection: CanvasSelection;
|
|
4133
4159
|
settingsOpen: boolean;
|
|
4134
4160
|
diagnostics: readonly Diagnostic$1[];
|
|
4135
4161
|
contributions: ContributionSet;
|
|
@@ -4173,7 +4199,7 @@ type ActionTarget = {
|
|
|
4173
4199
|
runId?: string;
|
|
4174
4200
|
failure?: CommandFailure;
|
|
4175
4201
|
};
|
|
4176
|
-
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
4202
|
+
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | 'card' | 'keymap' | {
|
|
4177
4203
|
row: string;
|
|
4178
4204
|
};
|
|
4179
4205
|
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow';
|
|
@@ -4287,6 +4313,9 @@ type ActionContribution = {
|
|
|
4287
4313
|
busy?: {
|
|
4288
4314
|
when: ContextKey;
|
|
4289
4315
|
label: string;
|
|
4316
|
+
} | {
|
|
4317
|
+
when: 'generating';
|
|
4318
|
+
label: Readonly<Record<GenerateStage, string>>;
|
|
4290
4319
|
};
|
|
4291
4320
|
section?: string;
|
|
4292
4321
|
tone?: 'danger';
|
|
@@ -4478,6 +4507,7 @@ type ActionRunner = {
|
|
|
4478
4507
|
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
4479
4508
|
editing(): boolean;
|
|
4480
4509
|
onEditingChange(listener: (editing: boolean) => void): () => void;
|
|
4510
|
+
onDidTick(listener: (run: CommandRun) => void): () => void;
|
|
4481
4511
|
busy(action: ActionContribution, ctx: RunCtx, target: ActionTarget): Busy | undefined;
|
|
4482
4512
|
cancel(kind: ResultKind): Promise<void>;
|
|
4483
4513
|
detach(kind: ResultKind): void;
|
|
@@ -4594,4 +4624,4 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4594
4624
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4595
4625
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4596
4626
|
|
|
4597
|
-
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type
|
|
4627
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type CommandPath as E, type CommandRun as F, CommandUnobservedError as G, type CommandsPort as H, type ConfirmSpec as I, type JsonOf as J, type ConnectCallerOptions as K, type LayoutHandle as L, ConnectError as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextKey as Q, type ResultStore as R, type SourcePort as S, type ContextPort as T, type CreatedRef as U, type DirectEngineCaller as V, EMPTY_REPORT_FOLD as W, type EditorBinding as X, type EditorEnv as Y, type EditorEnvExtras as Z, type EditorPort as _, type CanvasCtx as a, rowActions as a$, type EngineMethodResponse as a0, type EngineSession as a1, type EngineSessionOptions as a2, type EngineTarget as a3, type ErasedCommand as a4, type FollowSlot as a5, GENERATE_STAGES as a6, type GateChangeRequest as a7, type GenerateEvent as a8, type GenerateStage as a9, type SlotKind as aA, type SourceConflict as aB, type StackRef as aC, type Started as aD, type ViewStatePort as aE, type WiringCandidate as aF, type WiringQuery as aG, answering as aH, bridgeCaller as aI, carriesFailure as aJ, commandUnderWay as aK, connectCaller as aL, createActionRunner as aM, createResultStore as aN, currentReport as aO, defineCommand as aP, diagnosticsOf as aQ, disabledReason as aR, foldReport as aS, generatedTree as aT, isBoundPath as aU, openEngineCommands as aV, openEngineSession as aW, parseBound as aX, parseCommandFailure as aY, reportDiagnostics as aZ, resolveContributions as a_, type GeneratedTree as aa, type GraphError as ab, type HostBinding as ac, type Invocation as ad, type KeySpec as ae, type Placement as af, type PortName as ag, type PresenterPort as ah, type PreviewOutcome as ai, type PreviewSlot as aj, Reason as ak, type ReportEntry as al, type ReportFold as am, type ReportPath as an, type ReportSlot as ao, type ResultKind as ap, type ResultSlots as aq, type RunCtx as ar, type RunOutcome as as, type RunSlot as at, type RunnerPorts as au, type RunningMark as av, SCHEMAS as aw, type Sink as ax, type SinkInput as ay, type SlotContext as az, type CanvasPorts as b, toArgv as b0, uniqueDiagnostics as b1, Action as b2, InputMode as b3, type LaceReason as b4, type LiveSlots as b5, type OnScreen as b6, type RunPhase as b7, type RunPhaseStatus as b8, diagnosticsOfDocument as b9, failureSays as ba, liveSlots as bb, reasonWire as bc, reduceFollow as bd, reducePreview as be, reduceReport as bf, reduceRun as bg, settleRun as bh, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, Bundle as j, type CanvasSelection as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, type Busy as t, COMMANDS as u, type ClipboardStore as v, type CommandBinding as w, CommandDetachedError as x, CommandExitError as y, type CommandFailure as z };
|
|
@@ -1685,7 +1685,19 @@ interface SessionGenerateRequest {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1687
1687
|
interface SessionGenerateResponse {
|
|
1688
|
+
/**
|
|
1689
|
+
* Every file the write produced, sorted: Generate writes the whole
|
|
1690
|
+
* render, whatever bytes a file held before. Empty when nothing was
|
|
1691
|
+
* ungenerated.
|
|
1692
|
+
*/
|
|
1688
1693
|
files_written: string[];
|
|
1694
|
+
/**
|
|
1695
|
+
* The files of files_written whose bytes differ from the tree the write
|
|
1696
|
+
* replaced, a file the tree did not hold included, sorted.
|
|
1697
|
+
*/
|
|
1698
|
+
files_changed: string[];
|
|
1699
|
+
/** The source tf the write deleted, sorted. */
|
|
1700
|
+
files_removed: string[];
|
|
1689
1701
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
1690
1702
|
validate_json: string;
|
|
1691
1703
|
/**
|
|
@@ -2146,7 +2158,10 @@ interface GenerateProgress {
|
|
|
2146
2158
|
}
|
|
2147
2159
|
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
2148
2160
|
interface GenerateSuccess {
|
|
2161
|
+
/** The three file lists of the Generate's own SessionGenerateResponse. */
|
|
2149
2162
|
files_written: string[];
|
|
2163
|
+
files_changed: string[];
|
|
2164
|
+
files_removed: string[];
|
|
2150
2165
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
2151
2166
|
validate_json: string;
|
|
2152
2167
|
/** the Generate this event belongs to */
|
|
@@ -3943,7 +3958,7 @@ type CanvasSource = {
|
|
|
3943
3958
|
ungenerated: boolean;
|
|
3944
3959
|
conflict: SourceConflict | null;
|
|
3945
3960
|
sourceRefused: boolean;
|
|
3946
|
-
generating:
|
|
3961
|
+
generating: GenerateStage | false;
|
|
3947
3962
|
diagnostics: readonly Diagnostic$1[];
|
|
3948
3963
|
treeHash: string;
|
|
3949
3964
|
};
|
|
@@ -3961,18 +3976,31 @@ type SourceEnd = {
|
|
|
3961
3976
|
type SourcePort = {
|
|
3962
3977
|
subscribe: (on: (s: CanvasSource) => void, onEnd: (end: SourceEnd) => void, onCommandResult?: (result: CommandResult) => void) => () => void;
|
|
3963
3978
|
};
|
|
3979
|
+
declare const GENERATE_STAGES: readonly ["generating", "validating"];
|
|
3980
|
+
type GenerateStage = (typeof GENERATE_STAGES)[number];
|
|
3964
3981
|
type GenerateEvent = {
|
|
3965
3982
|
type: 'progress';
|
|
3966
|
-
stage:
|
|
3983
|
+
stage: GenerateStage;
|
|
3967
3984
|
} | {
|
|
3968
3985
|
type: 'success';
|
|
3969
3986
|
written: string[];
|
|
3987
|
+
changed: string[];
|
|
3988
|
+
removed: string[];
|
|
3970
3989
|
validate: JsonOf<'module validate'>;
|
|
3971
3990
|
} | {
|
|
3972
3991
|
type: 'error';
|
|
3973
3992
|
message: string;
|
|
3974
3993
|
reason: Reason;
|
|
3975
3994
|
};
|
|
3995
|
+
type GeneratedTree = {
|
|
3996
|
+
changed: readonly string[];
|
|
3997
|
+
removed: readonly string[];
|
|
3998
|
+
unchanged: number;
|
|
3999
|
+
treeChanged: boolean;
|
|
4000
|
+
};
|
|
4001
|
+
declare function generatedTree({ written, changed, removed, }: Extract<GenerateEvent, {
|
|
4002
|
+
type: 'success';
|
|
4003
|
+
}>): GeneratedTree;
|
|
3976
4004
|
/**
|
|
3977
4005
|
* A refusal of a batch's content reported by `ApplyAction`. Mirrors the wire
|
|
3978
4006
|
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
@@ -4102,19 +4130,20 @@ type CanvasPorts = RunnerPorts & {
|
|
|
4102
4130
|
};
|
|
4103
4131
|
type PortName = keyof CanvasPorts;
|
|
4104
4132
|
|
|
4105
|
-
/** The
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
type
|
|
4133
|
+
/** The keys an action may bind with no modifier. */
|
|
4134
|
+
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4135
|
+
type BareKey = (typeof BARE_KEYS)[number];
|
|
4136
|
+
/** The type an action's `keys` hold: a key that starts with `Mod+`, or a
|
|
4137
|
+
* bare key. The `Mod+` arm is the grammar's prefix check alone — the type
|
|
4138
|
+
* cannot spell an optional `Shift` then one key — and `parseChord` refuses
|
|
4139
|
+
* the rest at runtime. */
|
|
4140
|
+
type KeySpec = `Mod+${string}` | BareKey;
|
|
4109
4141
|
|
|
4110
|
-
type
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
target: string;
|
|
4114
|
-
sourceOutput: string;
|
|
4115
|
-
targetInput: string;
|
|
4142
|
+
type CanvasSelection = {
|
|
4143
|
+
nodes: readonly string[];
|
|
4144
|
+
edges: readonly string[];
|
|
4116
4145
|
};
|
|
4117
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4146
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4118
4147
|
type RunCtx = {
|
|
4119
4148
|
root?: string;
|
|
4120
4149
|
sessionId?: string;
|
|
@@ -4123,13 +4152,10 @@ type RunCtx = {
|
|
|
4123
4152
|
type CanvasCtx = RunCtx & {
|
|
4124
4153
|
ports: CanvasPorts;
|
|
4125
4154
|
editable: boolean;
|
|
4126
|
-
generating:
|
|
4155
|
+
generating: GenerateStage | false;
|
|
4127
4156
|
sourceRefused: boolean;
|
|
4128
4157
|
view: CanvasView;
|
|
4129
|
-
selection:
|
|
4130
|
-
nodes: readonly string[];
|
|
4131
|
-
edge: EdgeRef | null;
|
|
4132
|
-
};
|
|
4158
|
+
selection: CanvasSelection;
|
|
4133
4159
|
settingsOpen: boolean;
|
|
4134
4160
|
diagnostics: readonly Diagnostic$1[];
|
|
4135
4161
|
contributions: ContributionSet;
|
|
@@ -4173,7 +4199,7 @@ type ActionTarget = {
|
|
|
4173
4199
|
runId?: string;
|
|
4174
4200
|
failure?: CommandFailure;
|
|
4175
4201
|
};
|
|
4176
|
-
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
4202
|
+
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | 'card' | 'keymap' | {
|
|
4177
4203
|
row: string;
|
|
4178
4204
|
};
|
|
4179
4205
|
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow';
|
|
@@ -4287,6 +4313,9 @@ type ActionContribution = {
|
|
|
4287
4313
|
busy?: {
|
|
4288
4314
|
when: ContextKey;
|
|
4289
4315
|
label: string;
|
|
4316
|
+
} | {
|
|
4317
|
+
when: 'generating';
|
|
4318
|
+
label: Readonly<Record<GenerateStage, string>>;
|
|
4290
4319
|
};
|
|
4291
4320
|
section?: string;
|
|
4292
4321
|
tone?: 'danger';
|
|
@@ -4478,6 +4507,7 @@ type ActionRunner = {
|
|
|
4478
4507
|
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
4479
4508
|
editing(): boolean;
|
|
4480
4509
|
onEditingChange(listener: (editing: boolean) => void): () => void;
|
|
4510
|
+
onDidTick(listener: (run: CommandRun) => void): () => void;
|
|
4481
4511
|
busy(action: ActionContribution, ctx: RunCtx, target: ActionTarget): Busy | undefined;
|
|
4482
4512
|
cancel(kind: ResultKind): Promise<void>;
|
|
4483
4513
|
detach(kind: ResultKind): void;
|
|
@@ -4594,4 +4624,4 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4594
4624
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4595
4625
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4596
4626
|
|
|
4597
|
-
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type
|
|
4627
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type CommandPath as E, type CommandRun as F, CommandUnobservedError as G, type CommandsPort as H, type ConfirmSpec as I, type JsonOf as J, type ConnectCallerOptions as K, type LayoutHandle as L, ConnectError as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextKey as Q, type ResultStore as R, type SourcePort as S, type ContextPort as T, type CreatedRef as U, type DirectEngineCaller as V, EMPTY_REPORT_FOLD as W, type EditorBinding as X, type EditorEnv as Y, type EditorEnvExtras as Z, type EditorPort as _, type CanvasCtx as a, rowActions as a$, type EngineMethodResponse as a0, type EngineSession as a1, type EngineSessionOptions as a2, type EngineTarget as a3, type ErasedCommand as a4, type FollowSlot as a5, GENERATE_STAGES as a6, type GateChangeRequest as a7, type GenerateEvent as a8, type GenerateStage as a9, type SlotKind as aA, type SourceConflict as aB, type StackRef as aC, type Started as aD, type ViewStatePort as aE, type WiringCandidate as aF, type WiringQuery as aG, answering as aH, bridgeCaller as aI, carriesFailure as aJ, commandUnderWay as aK, connectCaller as aL, createActionRunner as aM, createResultStore as aN, currentReport as aO, defineCommand as aP, diagnosticsOf as aQ, disabledReason as aR, foldReport as aS, generatedTree as aT, isBoundPath as aU, openEngineCommands as aV, openEngineSession as aW, parseBound as aX, parseCommandFailure as aY, reportDiagnostics as aZ, resolveContributions as a_, type GeneratedTree as aa, type GraphError as ab, type HostBinding as ac, type Invocation as ad, type KeySpec as ae, type Placement as af, type PortName as ag, type PresenterPort as ah, type PreviewOutcome as ai, type PreviewSlot as aj, Reason as ak, type ReportEntry as al, type ReportFold as am, type ReportPath as an, type ReportSlot as ao, type ResultKind as ap, type ResultSlots as aq, type RunCtx as ar, type RunOutcome as as, type RunSlot as at, type RunnerPorts as au, type RunningMark as av, SCHEMAS as aw, type Sink as ax, type SinkInput as ay, type SlotContext as az, type CanvasPorts as b, toArgv as b0, uniqueDiagnostics as b1, Action as b2, InputMode as b3, type LaceReason as b4, type LiveSlots as b5, type OnScreen as b6, type RunPhase as b7, type RunPhaseStatus as b8, diagnosticsOfDocument as b9, failureSays as ba, liveSlots as bb, reasonWire as bc, reduceFollow as bd, reducePreview as be, reduceReport as bf, reduceRun as bg, settleRun as bh, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, Bundle as j, type CanvasSelection as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, type Busy as t, COMMANDS as u, type ClipboardStore as v, type CommandBinding as w, CommandDetachedError as x, CommandExitError as y, type CommandFailure as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^18.3.1",
|
|
24
24
|
"react-dom": "^18.3.1",
|
|
25
25
|
"zod": "^4.1.11",
|
|
26
|
-
"@lace-cloud/proto": "0.
|
|
27
|
-
"@lace-cloud/ui": "0.
|
|
26
|
+
"@lace-cloud/proto": "0.30.0",
|
|
27
|
+
"@lace-cloud/ui": "0.30.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.3.12",
|