@lace-cloud/canvas 0.24.0 → 0.25.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/README.md +8 -2
- package/dist/{chunk-HZWABSPP.mjs → chunk-YLJWYH7B.mjs} +34 -26
- package/dist/{chunk-HZWABSPP.mjs.map → chunk-YLJWYH7B.mjs.map} +1 -1
- package/dist/engine/index.cjs +33 -22
- 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 +3 -1
- package/dist/index.cjs +34 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -9
- package/dist/index.d.ts +3 -9
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-Z-STJQRP.d.mts → registry-CdHLt_qh.d.mts} +34 -11
- package/dist/{mapping-Z-STJQRP.d.ts → registry-CdHLt_qh.d.ts} +34 -11
- package/package.json +3 -3
|
@@ -3412,18 +3412,9 @@ declare const SCHEMAS: {
|
|
|
3412
3412
|
}, z.core.$strip>>;
|
|
3413
3413
|
}, z.core.$strip>;
|
|
3414
3414
|
'stack import': z.ZodObject<{
|
|
3415
|
-
|
|
3416
|
-
id: z.ZodString;
|
|
3417
|
-
slug: z.ZodString;
|
|
3418
|
-
}, z.core.$strip>;
|
|
3415
|
+
changed: z.ZodBoolean;
|
|
3419
3416
|
written: z.ZodArray<z.ZodString>;
|
|
3420
3417
|
removed: z.ZodArray<z.ZodString>;
|
|
3421
|
-
importBlocks: z.ZodNumber;
|
|
3422
|
-
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3423
|
-
address: z.ZodString;
|
|
3424
|
-
type: z.ZodString;
|
|
3425
|
-
reason: z.ZodString;
|
|
3426
|
-
}, z.core.$strip>>;
|
|
3427
3418
|
validate: z.ZodObject<{
|
|
3428
3419
|
root: z.ZodOptional<z.ZodString>;
|
|
3429
3420
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -3501,6 +3492,31 @@ declare const SCHEMAS: {
|
|
|
3501
3492
|
column: z.ZodOptional<z.ZodNumber>;
|
|
3502
3493
|
}, z.core.$strip>>;
|
|
3503
3494
|
}, z.core.$strip>;
|
|
3495
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3496
|
+
severity: z.ZodEnum<{
|
|
3497
|
+
error: "error";
|
|
3498
|
+
warning: "warning";
|
|
3499
|
+
info: "info";
|
|
3500
|
+
}>;
|
|
3501
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3502
|
+
message: z.ZodString;
|
|
3503
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
3504
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
3505
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
3506
|
+
file: z.ZodOptional<z.ZodString>;
|
|
3507
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3508
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
3509
|
+
}, z.core.$strip>>;
|
|
3510
|
+
stack: z.ZodObject<{
|
|
3511
|
+
id: z.ZodString;
|
|
3512
|
+
slug: z.ZodString;
|
|
3513
|
+
}, z.core.$strip>;
|
|
3514
|
+
importBlocks: z.ZodNumber;
|
|
3515
|
+
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3516
|
+
address: z.ZodString;
|
|
3517
|
+
type: z.ZodString;
|
|
3518
|
+
reason: z.ZodString;
|
|
3519
|
+
}, z.core.$strip>>;
|
|
3504
3520
|
}, z.core.$strip>;
|
|
3505
3521
|
'run get': z.ZodObject<{
|
|
3506
3522
|
id: z.ZodString;
|
|
@@ -4333,4 +4349,11 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4333
4349
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4334
4350
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4335
4351
|
|
|
4336
|
-
|
|
4352
|
+
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
|
|
4353
|
+
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
|
|
4354
|
+
declare function answering(actions: readonly ActionContribution[], failure: CommandFailure): readonly ActionContribution[];
|
|
4355
|
+
declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
|
|
4356
|
+
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4357
|
+
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4358
|
+
|
|
4359
|
+
export { type EngineMethodResponse as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef as E, CommandUnobservedError as F, type CommandsPort as G, type ConfirmSpec as H, type ConnectCallerOptions as I, type JsonOf as J, ConnectError as K, type LayoutHandle as L, type ContextKey as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextPort as Q, type ResultStore as R, type SourcePort as S, type CreatedRef as T, type DirectEngineCaller as U, EMPTY_REPORT_FOLD as V, type EditorBinding as W, type EditorEnv as X, type EditorEnvExtras as Y, type EditorPort as Z, type EngineCaller as _, type CanvasCtx as a, type RunPhaseStatus as a$, type EngineSession as a0, type EngineSessionOptions as a1, type EngineTarget as a2, type ErasedCommand as a3, type FollowSlot as a4, type GateChangeRequest as a5, type GenerateEvent as a6, type GraphError as a7, type HostBinding as a8, type Invocation as a9, answering as aA, bridgeCaller as aB, carriesFailure as aC, connectCaller as aD, createActionRunner as aE, createResultStore as aF, currentReport as aG, defineCommand as aH, diagnosticsOf as aI, disabledReason as aJ, foldReport as aK, isBoundPath as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reportDiagnostics as aQ, resolveContributions as aR, rowActions as aS, toArgv as aT, uniqueDiagnostics as aU, Action as aV, InputMode as aW, type LaceReason as aX, type LiveSlots as aY, type OnScreen as aZ, type RunPhase as a_, type KeySpec as aa, type Placement as ab, type PortName as ac, type PresenterPort as ad, type PreviewSlot as ae, Reason as af, type ReportEntry as ag, type ReportFold as ah, type ReportPath as ai, type ReportSlot as aj, type ResultKind as ak, type ResultSlots as al, type RunCtx as am, type RunOutcome as an, type RunSlot as ao, type RunnerPorts as ap, SCHEMAS as aq, type Sink as ar, type SinkInput as as, type SlotContext as at, type SlotKind as au, type SourceConflict as av, type StackRef as aw, type ViewStatePort as ax, type WiringCandidate as ay, type WiringQuery as az, type CanvasPorts as b, diagnosticsOfDocument as b0, liveSlots as b1, reasonWire as b2, reduceFollow as b3, reducePreview as b4, reduceReport as b5, reduceRun as b6, settleRun as b7, 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 ActionRunner as k, type ActionIcon as l, type ActionRunnerOptions as m, type ApplyResult as n, ApplyUnobservedError as o, type ArgsOf as p, type BindingRuntime as q, type BridgeEngineCaller as r, COMMANDS as s, type ClipboardStore as t, type CommandBinding as u, CommandDetachedError as v, CommandExitError as w, type CommandFailure as x, type CommandPath as y, type CommandRun as z };
|
|
@@ -3412,18 +3412,9 @@ declare const SCHEMAS: {
|
|
|
3412
3412
|
}, z.core.$strip>>;
|
|
3413
3413
|
}, z.core.$strip>;
|
|
3414
3414
|
'stack import': z.ZodObject<{
|
|
3415
|
-
|
|
3416
|
-
id: z.ZodString;
|
|
3417
|
-
slug: z.ZodString;
|
|
3418
|
-
}, z.core.$strip>;
|
|
3415
|
+
changed: z.ZodBoolean;
|
|
3419
3416
|
written: z.ZodArray<z.ZodString>;
|
|
3420
3417
|
removed: z.ZodArray<z.ZodString>;
|
|
3421
|
-
importBlocks: z.ZodNumber;
|
|
3422
|
-
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3423
|
-
address: z.ZodString;
|
|
3424
|
-
type: z.ZodString;
|
|
3425
|
-
reason: z.ZodString;
|
|
3426
|
-
}, z.core.$strip>>;
|
|
3427
3418
|
validate: z.ZodObject<{
|
|
3428
3419
|
root: z.ZodOptional<z.ZodString>;
|
|
3429
3420
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -3501,6 +3492,31 @@ declare const SCHEMAS: {
|
|
|
3501
3492
|
column: z.ZodOptional<z.ZodNumber>;
|
|
3502
3493
|
}, z.core.$strip>>;
|
|
3503
3494
|
}, z.core.$strip>;
|
|
3495
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3496
|
+
severity: z.ZodEnum<{
|
|
3497
|
+
error: "error";
|
|
3498
|
+
warning: "warning";
|
|
3499
|
+
info: "info";
|
|
3500
|
+
}>;
|
|
3501
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3502
|
+
message: z.ZodString;
|
|
3503
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
3504
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
3505
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
3506
|
+
file: z.ZodOptional<z.ZodString>;
|
|
3507
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3508
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
3509
|
+
}, z.core.$strip>>;
|
|
3510
|
+
stack: z.ZodObject<{
|
|
3511
|
+
id: z.ZodString;
|
|
3512
|
+
slug: z.ZodString;
|
|
3513
|
+
}, z.core.$strip>;
|
|
3514
|
+
importBlocks: z.ZodNumber;
|
|
3515
|
+
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3516
|
+
address: z.ZodString;
|
|
3517
|
+
type: z.ZodString;
|
|
3518
|
+
reason: z.ZodString;
|
|
3519
|
+
}, z.core.$strip>>;
|
|
3504
3520
|
}, z.core.$strip>;
|
|
3505
3521
|
'run get': z.ZodObject<{
|
|
3506
3522
|
id: z.ZodString;
|
|
@@ -4333,4 +4349,11 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4333
4349
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4334
4350
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4335
4351
|
|
|
4336
|
-
|
|
4352
|
+
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
|
|
4353
|
+
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
|
|
4354
|
+
declare function answering(actions: readonly ActionContribution[], failure: CommandFailure): readonly ActionContribution[];
|
|
4355
|
+
declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
|
|
4356
|
+
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4357
|
+
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4358
|
+
|
|
4359
|
+
export { type EngineMethodResponse as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef as E, CommandUnobservedError as F, type CommandsPort as G, type ConfirmSpec as H, type ConnectCallerOptions as I, type JsonOf as J, ConnectError as K, type LayoutHandle as L, type ContextKey as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextPort as Q, type ResultStore as R, type SourcePort as S, type CreatedRef as T, type DirectEngineCaller as U, EMPTY_REPORT_FOLD as V, type EditorBinding as W, type EditorEnv as X, type EditorEnvExtras as Y, type EditorPort as Z, type EngineCaller as _, type CanvasCtx as a, type RunPhaseStatus as a$, type EngineSession as a0, type EngineSessionOptions as a1, type EngineTarget as a2, type ErasedCommand as a3, type FollowSlot as a4, type GateChangeRequest as a5, type GenerateEvent as a6, type GraphError as a7, type HostBinding as a8, type Invocation as a9, answering as aA, bridgeCaller as aB, carriesFailure as aC, connectCaller as aD, createActionRunner as aE, createResultStore as aF, currentReport as aG, defineCommand as aH, diagnosticsOf as aI, disabledReason as aJ, foldReport as aK, isBoundPath as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reportDiagnostics as aQ, resolveContributions as aR, rowActions as aS, toArgv as aT, uniqueDiagnostics as aU, Action as aV, InputMode as aW, type LaceReason as aX, type LiveSlots as aY, type OnScreen as aZ, type RunPhase as a_, type KeySpec as aa, type Placement as ab, type PortName as ac, type PresenterPort as ad, type PreviewSlot as ae, Reason as af, type ReportEntry as ag, type ReportFold as ah, type ReportPath as ai, type ReportSlot as aj, type ResultKind as ak, type ResultSlots as al, type RunCtx as am, type RunOutcome as an, type RunSlot as ao, type RunnerPorts as ap, SCHEMAS as aq, type Sink as ar, type SinkInput as as, type SlotContext as at, type SlotKind as au, type SourceConflict as av, type StackRef as aw, type ViewStatePort as ax, type WiringCandidate as ay, type WiringQuery as az, type CanvasPorts as b, diagnosticsOfDocument as b0, liveSlots as b1, reasonWire as b2, reduceFollow as b3, reducePreview as b4, reduceReport as b5, reduceRun as b6, settleRun as b7, 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 ActionRunner as k, type ActionIcon as l, type ActionRunnerOptions as m, type ApplyResult as n, ApplyUnobservedError as o, type ArgsOf as p, type BindingRuntime as q, type BridgeEngineCaller as r, COMMANDS as s, type ClipboardStore as t, type CommandBinding as u, CommandDetachedError as v, CommandExitError as w, type CommandFailure as x, type CommandPath as y, type CommandRun as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.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.25.0",
|
|
27
|
+
"@lace-cloud/ui": "0.25.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.3.12",
|