@lace-cloud/canvas 0.23.0 → 0.24.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 +5 -1
- package/dist/PaperGrid-JG4GBRDP.css +19 -0
- package/dist/{chunk-GV2FO3E2.mjs → chunk-HZWABSPP.mjs} +187 -52
- package/dist/chunk-HZWABSPP.mjs.map +1 -0
- package/dist/engine/index.cjs +186 -50
- 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 +756 -657
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +364 -399
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-B2QFbLmE.d.ts → mapping-Z-STJQRP.d.mts} +126 -15
- package/dist/{mapping-B2QFbLmE.d.mts → mapping-Z-STJQRP.d.ts} +126 -15
- package/package.json +3 -3
- package/dist/PaperGrid-WFRL3N4P.css +0 -25
- package/dist/chunk-GV2FO3E2.mjs.map +0 -1
|
@@ -1433,6 +1433,8 @@ declare enum Reason {
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
1435
1435
|
* root is not inside a git working tree.
|
|
1436
|
+
* stack create --source: the directory is not inside a git working tree,
|
|
1437
|
+
* so it has no place in a repository to bind the stack to.
|
|
1436
1438
|
*/
|
|
1437
1439
|
REASON_NOT_GIT_REPOSITORY = 8,
|
|
1438
1440
|
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
@@ -1476,6 +1478,34 @@ declare enum Reason {
|
|
|
1476
1478
|
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
1477
1479
|
*/
|
|
1478
1480
|
REASON_UNAUTHENTICATED = 16,
|
|
1481
|
+
/**
|
|
1482
|
+
* REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
|
|
1483
|
+
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
1484
|
+
* writes the import without them. Nothing was written.
|
|
1485
|
+
*/
|
|
1486
|
+
REASON_IMPORT_RESIDUAL = 17,
|
|
1487
|
+
/**
|
|
1488
|
+
* REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
|
|
1489
|
+
* adopts into an empty stack. Nothing was read or written.
|
|
1490
|
+
*/
|
|
1491
|
+
REASON_STACK_HAS_STATE = 18,
|
|
1492
|
+
/**
|
|
1493
|
+
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
1494
|
+
* remote, whose URL is the repository a stack's source binding names.
|
|
1495
|
+
*/
|
|
1496
|
+
REASON_NO_ORIGIN_REMOTE = 19,
|
|
1497
|
+
/**
|
|
1498
|
+
* REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
|
|
1499
|
+
* declare, named in the failure's `addresses`; an import block adopts
|
|
1500
|
+
* only a resource the tree declares. Nothing was written.
|
|
1501
|
+
*/
|
|
1502
|
+
REASON_IMPORT_UNDECLARED = 20,
|
|
1503
|
+
/**
|
|
1504
|
+
* REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
|
|
1505
|
+
* named in the failure's `addresses`; terraform refuses two imports of
|
|
1506
|
+
* one address. Nothing was written.
|
|
1507
|
+
*/
|
|
1508
|
+
REASON_ALREADY_IMPORTED = 21,
|
|
1479
1509
|
UNRECOGNIZED = -1
|
|
1480
1510
|
}
|
|
1481
1511
|
declare enum ConflictChoice {
|
|
@@ -2511,6 +2541,24 @@ interface MessageFns<T> {
|
|
|
2511
2541
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2512
2542
|
}
|
|
2513
2543
|
|
|
2544
|
+
declare const REASON_PREFIX = "REASON_";
|
|
2545
|
+
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
2546
|
+
type LaceReason = WireSpelling<keyof typeof Reason>;
|
|
2547
|
+
declare function reasonWire(reason: Reason): string;
|
|
2548
|
+
declare const commandFailureSchema: z.ZodObject<{
|
|
2549
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2550
|
+
message: z.ZodString;
|
|
2551
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2554
|
+
address: z.ZodString;
|
|
2555
|
+
type: z.ZodString;
|
|
2556
|
+
reason: z.ZodString;
|
|
2557
|
+
}, z.core.$strip>>>;
|
|
2558
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2559
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
}, z.core.$strict>;
|
|
2561
|
+
type CommandFailure = z.infer<typeof commandFailureSchema>;
|
|
2514
2562
|
declare const gateChangeRequestSchema: z.ZodObject<{
|
|
2515
2563
|
id: z.ZodString;
|
|
2516
2564
|
state: z.ZodString;
|
|
@@ -2521,13 +2569,19 @@ declare const gateChangeRequestSchema: z.ZodObject<{
|
|
|
2521
2569
|
lace: "lace";
|
|
2522
2570
|
ecm: "ecm";
|
|
2523
2571
|
}>;
|
|
2572
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
2524
2573
|
}, z.core.$strip>>;
|
|
2525
2574
|
records: z.ZodArray<z.ZodObject<{
|
|
2575
|
+
id: z.ZodString;
|
|
2526
2576
|
externalSystemId: z.ZodString;
|
|
2527
2577
|
kind: z.ZodString;
|
|
2528
2578
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
2529
2579
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
2530
2580
|
state: z.ZodNullable<z.ZodString>;
|
|
2581
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
2582
|
+
approved: "approved";
|
|
2583
|
+
rejected: "rejected";
|
|
2584
|
+
}>>;
|
|
2531
2585
|
}, z.core.$strip>>;
|
|
2532
2586
|
}, z.core.$strip>;
|
|
2533
2587
|
type GateChangeRequest = z.infer<typeof gateChangeRequestSchema>;
|
|
@@ -2584,6 +2638,19 @@ declare const SCHEMAS: {
|
|
|
2584
2638
|
treeHash: z.ZodString;
|
|
2585
2639
|
}, z.core.$strip>>>;
|
|
2586
2640
|
exitClass: z.ZodString;
|
|
2641
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2642
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2643
|
+
message: z.ZodString;
|
|
2644
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2646
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2647
|
+
address: z.ZodString;
|
|
2648
|
+
type: z.ZodString;
|
|
2649
|
+
reason: z.ZodString;
|
|
2650
|
+
}, z.core.$strip>>>;
|
|
2651
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2652
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
}, z.core.$strict>>;
|
|
2587
2654
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2588
2655
|
severity: z.ZodEnum<{
|
|
2589
2656
|
error: "error";
|
|
@@ -2652,6 +2719,19 @@ declare const SCHEMAS: {
|
|
|
2652
2719
|
treeHash: z.ZodString;
|
|
2653
2720
|
}, z.core.$strip>>>;
|
|
2654
2721
|
exitClass: z.ZodString;
|
|
2722
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2723
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2724
|
+
message: z.ZodString;
|
|
2725
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2726
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2728
|
+
address: z.ZodString;
|
|
2729
|
+
type: z.ZodString;
|
|
2730
|
+
reason: z.ZodString;
|
|
2731
|
+
}, z.core.$strip>>>;
|
|
2732
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2733
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2734
|
+
}, z.core.$strict>>;
|
|
2655
2735
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2656
2736
|
severity: z.ZodEnum<{
|
|
2657
2737
|
error: "error";
|
|
@@ -3094,13 +3174,19 @@ declare const SCHEMAS: {
|
|
|
3094
3174
|
lace: "lace";
|
|
3095
3175
|
ecm: "ecm";
|
|
3096
3176
|
}>;
|
|
3177
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
3097
3178
|
}, z.core.$strip>>;
|
|
3098
3179
|
records: z.ZodArray<z.ZodObject<{
|
|
3180
|
+
id: z.ZodString;
|
|
3099
3181
|
externalSystemId: z.ZodString;
|
|
3100
3182
|
kind: z.ZodString;
|
|
3101
3183
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
3102
3184
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
3103
3185
|
state: z.ZodNullable<z.ZodString>;
|
|
3186
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
3187
|
+
approved: "approved";
|
|
3188
|
+
rejected: "rejected";
|
|
3189
|
+
}>>;
|
|
3104
3190
|
}, z.core.$strip>>;
|
|
3105
3191
|
}, z.core.$strip>>;
|
|
3106
3192
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3178,13 +3264,19 @@ declare const SCHEMAS: {
|
|
|
3178
3264
|
lace: "lace";
|
|
3179
3265
|
ecm: "ecm";
|
|
3180
3266
|
}>;
|
|
3267
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
3181
3268
|
}, z.core.$strip>>;
|
|
3182
3269
|
records: z.ZodArray<z.ZodObject<{
|
|
3270
|
+
id: z.ZodString;
|
|
3183
3271
|
externalSystemId: z.ZodString;
|
|
3184
3272
|
kind: z.ZodString;
|
|
3185
3273
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
3186
3274
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
3187
3275
|
state: z.ZodNullable<z.ZodString>;
|
|
3276
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
3277
|
+
approved: "approved";
|
|
3278
|
+
rejected: "rejected";
|
|
3279
|
+
}>>;
|
|
3188
3280
|
}, z.core.$strip>>;
|
|
3189
3281
|
}, z.core.$strip>>;
|
|
3190
3282
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3241,6 +3333,10 @@ declare const SCHEMAS: {
|
|
|
3241
3333
|
error: z.ZodNullable<z.ZodString>;
|
|
3242
3334
|
}, z.core.$strip>], "type">;
|
|
3243
3335
|
'stack scan': z.ZodObject<{
|
|
3336
|
+
stack: z.ZodObject<{
|
|
3337
|
+
id: z.ZodString;
|
|
3338
|
+
slug: z.ZodString;
|
|
3339
|
+
}, z.core.$strip>;
|
|
3244
3340
|
triggered: z.ZodBoolean;
|
|
3245
3341
|
reason: z.ZodNullable<z.ZodString>;
|
|
3246
3342
|
settled: z.ZodNullable<z.ZodObject<{
|
|
@@ -3248,6 +3344,8 @@ declare const SCHEMAS: {
|
|
|
3248
3344
|
driftCount: z.ZodNumber;
|
|
3249
3345
|
scannedAt: z.ZodString;
|
|
3250
3346
|
undeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3347
|
+
standingDriftFindings: z.ZodNumber;
|
|
3348
|
+
footprintDestroyed: z.ZodBoolean;
|
|
3251
3349
|
drift: z.ZodNullable<z.ZodObject<{
|
|
3252
3350
|
stackId: z.ZodString;
|
|
3253
3351
|
scannedAt: z.ZodString;
|
|
@@ -3319,8 +3417,13 @@ declare const SCHEMAS: {
|
|
|
3319
3417
|
slug: z.ZodString;
|
|
3320
3418
|
}, z.core.$strip>;
|
|
3321
3419
|
written: z.ZodArray<z.ZodString>;
|
|
3420
|
+
removed: z.ZodArray<z.ZodString>;
|
|
3322
3421
|
importBlocks: z.ZodNumber;
|
|
3323
|
-
importResiduals: z.ZodArray<z.
|
|
3422
|
+
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3423
|
+
address: z.ZodString;
|
|
3424
|
+
type: z.ZodString;
|
|
3425
|
+
reason: z.ZodString;
|
|
3426
|
+
}, z.core.$strip>>;
|
|
3324
3427
|
validate: z.ZodObject<{
|
|
3325
3428
|
root: z.ZodOptional<z.ZodString>;
|
|
3326
3429
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -3369,6 +3472,19 @@ declare const SCHEMAS: {
|
|
|
3369
3472
|
treeHash: z.ZodString;
|
|
3370
3473
|
}, z.core.$strip>>>;
|
|
3371
3474
|
exitClass: z.ZodString;
|
|
3475
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
3476
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
3477
|
+
message: z.ZodString;
|
|
3478
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3481
|
+
address: z.ZodString;
|
|
3482
|
+
type: z.ZodString;
|
|
3483
|
+
reason: z.ZodString;
|
|
3484
|
+
}, z.core.$strip>>>;
|
|
3485
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3486
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
3487
|
+
}, z.core.$strict>>;
|
|
3372
3488
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3373
3489
|
severity: z.ZodEnum<{
|
|
3374
3490
|
error: "error";
|
|
@@ -3593,18 +3709,6 @@ type BoundPath = keyof typeof SCHEMAS;
|
|
|
3593
3709
|
declare function isBoundPath(path: string): path is BoundPath;
|
|
3594
3710
|
type JsonOf<P> = P extends BoundPath ? z.infer<(typeof SCHEMAS)[P]> : unknown;
|
|
3595
3711
|
declare function parseBound<P extends BoundPath>(path: P, data: unknown): JsonOf<P>;
|
|
3596
|
-
declare const REASON_PREFIX = "REASON_";
|
|
3597
|
-
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
3598
|
-
type LaceReason = WireSpelling<keyof typeof Reason>;
|
|
3599
|
-
declare function reasonWire(reason: Reason): string;
|
|
3600
|
-
declare const commandFailureSchema: z.ZodObject<{
|
|
3601
|
-
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
3602
|
-
message: z.ZodString;
|
|
3603
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3604
|
-
tool: z.ZodOptional<z.ZodString>;
|
|
3605
|
-
apiCode: z.ZodOptional<z.ZodString>;
|
|
3606
|
-
}, z.core.$strict>;
|
|
3607
|
-
type CommandFailure = z.infer<typeof commandFailureSchema>;
|
|
3608
3712
|
declare function carriesFailure(data: unknown): boolean;
|
|
3609
3713
|
declare function parseCommandFailure(data: unknown): CommandFailure;
|
|
3610
3714
|
|
|
@@ -3733,6 +3837,9 @@ declare class ConnectError extends Error {
|
|
|
3733
3837
|
declare class CommandDetachedError extends Error {
|
|
3734
3838
|
constructor();
|
|
3735
3839
|
}
|
|
3840
|
+
declare class CommandUnobservedError extends Error {
|
|
3841
|
+
constructor();
|
|
3842
|
+
}
|
|
3736
3843
|
type Invocation<P extends BoundPath> = {
|
|
3737
3844
|
events: AsyncIterable<JsonOf<P>>;
|
|
3738
3845
|
cancel: () => Promise<void>;
|
|
@@ -3843,6 +3950,7 @@ type ActionTarget = {
|
|
|
3843
3950
|
groupId?: string;
|
|
3844
3951
|
diagnostic?: Diagnostic$1;
|
|
3845
3952
|
runId?: string;
|
|
3953
|
+
failure?: CommandFailure;
|
|
3846
3954
|
};
|
|
3847
3955
|
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
3848
3956
|
row: string;
|
|
@@ -3878,7 +3986,7 @@ type CommandBinding<P extends BoundPath> = {
|
|
|
3878
3986
|
kind: 'command';
|
|
3879
3987
|
path: P;
|
|
3880
3988
|
args: (ctx: RunCtx, target: ActionTarget) => Partial<ArgsOf<P>>;
|
|
3881
|
-
confirm?: (ctx: RunCtx, args: ArgsOf<P
|
|
3989
|
+
confirm?: (ctx: RunCtx, args: ArgsOf<P>, target: ActionTarget) => ConfirmSpec;
|
|
3882
3990
|
result: Sink<JsonOf<P>> & {
|
|
3883
3991
|
kind: ResultFor<P>;
|
|
3884
3992
|
};
|
|
@@ -3950,6 +4058,7 @@ type ActionIcon = 'validate' | 'convert' | 'save' | 'generate' | 'undo' | 'redo'
|
|
|
3950
4058
|
type ActionContribution = {
|
|
3951
4059
|
id: string;
|
|
3952
4060
|
label: string;
|
|
4061
|
+
choice?: string;
|
|
3953
4062
|
icon?: ActionIcon;
|
|
3954
4063
|
primary?: {
|
|
3955
4064
|
when?: ContextKey;
|
|
@@ -3967,6 +4076,7 @@ type ActionContribution = {
|
|
|
3967
4076
|
requiredPorts: readonly PortName[];
|
|
3968
4077
|
requiredContext?: readonly ContextKey[];
|
|
3969
4078
|
requiredTarget?: readonly (keyof ActionTarget)[];
|
|
4079
|
+
answers?: readonly LaceReason[];
|
|
3970
4080
|
enabledWhen?: readonly {
|
|
3971
4081
|
key: ContextKey;
|
|
3972
4082
|
reason: string;
|
|
@@ -4022,6 +4132,7 @@ type RunOutcome = {
|
|
|
4022
4132
|
} | {
|
|
4023
4133
|
kind: 'awaiting-approval';
|
|
4024
4134
|
changeRequest: GateChangeRequest;
|
|
4135
|
+
runUrl: string | null;
|
|
4025
4136
|
} | {
|
|
4026
4137
|
kind: 'blocked';
|
|
4027
4138
|
message: string;
|
|
@@ -4222,4 +4333,4 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4222
4333
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4223
4334
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4224
4335
|
|
|
4225
|
-
export { type
|
|
4336
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef 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, reduceFollow 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, type GateChangeRequest as a6, type GenerateEvent as a7, type GraphError as a8, type HostBinding as a9, bridgeCaller as aA, carriesFailure as aB, connectCaller as aC, createActionRunner as aD, createResultStore as aE, currentReport as aF, defineCommand as aG, diagnosticsOf as aH, foldReport as aI, isBoundPath as aJ, openEngineCommands as aK, openEngineSession as aL, parseBound as aM, parseCommandFailure as aN, reportDiagnostics as aO, toArgv as aP, uniqueDiagnostics as aQ, Action as aR, InputMode as aS, type LaceReason as aT, type LiveSlots as aU, type OnScreen as aV, type RunPhase as aW, type RunPhaseStatus as aX, diagnosticsOfDocument as aY, liveSlots as aZ, reasonWire as a_, type Invocation as aa, type KeySpec as ab, type Placement as ac, type PortName as ad, type PresenterPort as ae, type PreviewSlot as af, Reason as ag, type ReportEntry as ah, type ReportFold as ai, type ReportPath as aj, type ReportSlot as ak, type ResultKind as al, type ResultSlots 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, reducePreview as b0, reduceReport as b1, reduceRun as b2, settleRun as b3, 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, type RunCtx as j, Bundle 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, COMMANDS as t, type ClipboardStore as u, type CommandBinding as v, CommandDetachedError as w, CommandExitError as x, type CommandFailure as y, type CommandPath as z };
|
|
@@ -1433,6 +1433,8 @@ declare enum Reason {
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
1435
1435
|
* root is not inside a git working tree.
|
|
1436
|
+
* stack create --source: the directory is not inside a git working tree,
|
|
1437
|
+
* so it has no place in a repository to bind the stack to.
|
|
1436
1438
|
*/
|
|
1437
1439
|
REASON_NOT_GIT_REPOSITORY = 8,
|
|
1438
1440
|
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
@@ -1476,6 +1478,34 @@ declare enum Reason {
|
|
|
1476
1478
|
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
1477
1479
|
*/
|
|
1478
1480
|
REASON_UNAUTHENTICATED = 16,
|
|
1481
|
+
/**
|
|
1482
|
+
* REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
|
|
1483
|
+
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
1484
|
+
* writes the import without them. Nothing was written.
|
|
1485
|
+
*/
|
|
1486
|
+
REASON_IMPORT_RESIDUAL = 17,
|
|
1487
|
+
/**
|
|
1488
|
+
* REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
|
|
1489
|
+
* adopts into an empty stack. Nothing was read or written.
|
|
1490
|
+
*/
|
|
1491
|
+
REASON_STACK_HAS_STATE = 18,
|
|
1492
|
+
/**
|
|
1493
|
+
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
1494
|
+
* remote, whose URL is the repository a stack's source binding names.
|
|
1495
|
+
*/
|
|
1496
|
+
REASON_NO_ORIGIN_REMOTE = 19,
|
|
1497
|
+
/**
|
|
1498
|
+
* REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
|
|
1499
|
+
* declare, named in the failure's `addresses`; an import block adopts
|
|
1500
|
+
* only a resource the tree declares. Nothing was written.
|
|
1501
|
+
*/
|
|
1502
|
+
REASON_IMPORT_UNDECLARED = 20,
|
|
1503
|
+
/**
|
|
1504
|
+
* REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
|
|
1505
|
+
* named in the failure's `addresses`; terraform refuses two imports of
|
|
1506
|
+
* one address. Nothing was written.
|
|
1507
|
+
*/
|
|
1508
|
+
REASON_ALREADY_IMPORTED = 21,
|
|
1479
1509
|
UNRECOGNIZED = -1
|
|
1480
1510
|
}
|
|
1481
1511
|
declare enum ConflictChoice {
|
|
@@ -2511,6 +2541,24 @@ interface MessageFns<T> {
|
|
|
2511
2541
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2512
2542
|
}
|
|
2513
2543
|
|
|
2544
|
+
declare const REASON_PREFIX = "REASON_";
|
|
2545
|
+
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
2546
|
+
type LaceReason = WireSpelling<keyof typeof Reason>;
|
|
2547
|
+
declare function reasonWire(reason: Reason): string;
|
|
2548
|
+
declare const commandFailureSchema: z.ZodObject<{
|
|
2549
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2550
|
+
message: z.ZodString;
|
|
2551
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2554
|
+
address: z.ZodString;
|
|
2555
|
+
type: z.ZodString;
|
|
2556
|
+
reason: z.ZodString;
|
|
2557
|
+
}, z.core.$strip>>>;
|
|
2558
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2559
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
}, z.core.$strict>;
|
|
2561
|
+
type CommandFailure = z.infer<typeof commandFailureSchema>;
|
|
2514
2562
|
declare const gateChangeRequestSchema: z.ZodObject<{
|
|
2515
2563
|
id: z.ZodString;
|
|
2516
2564
|
state: z.ZodString;
|
|
@@ -2521,13 +2569,19 @@ declare const gateChangeRequestSchema: z.ZodObject<{
|
|
|
2521
2569
|
lace: "lace";
|
|
2522
2570
|
ecm: "ecm";
|
|
2523
2571
|
}>;
|
|
2572
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
2524
2573
|
}, z.core.$strip>>;
|
|
2525
2574
|
records: z.ZodArray<z.ZodObject<{
|
|
2575
|
+
id: z.ZodString;
|
|
2526
2576
|
externalSystemId: z.ZodString;
|
|
2527
2577
|
kind: z.ZodString;
|
|
2528
2578
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
2529
2579
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
2530
2580
|
state: z.ZodNullable<z.ZodString>;
|
|
2581
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
2582
|
+
approved: "approved";
|
|
2583
|
+
rejected: "rejected";
|
|
2584
|
+
}>>;
|
|
2531
2585
|
}, z.core.$strip>>;
|
|
2532
2586
|
}, z.core.$strip>;
|
|
2533
2587
|
type GateChangeRequest = z.infer<typeof gateChangeRequestSchema>;
|
|
@@ -2584,6 +2638,19 @@ declare const SCHEMAS: {
|
|
|
2584
2638
|
treeHash: z.ZodString;
|
|
2585
2639
|
}, z.core.$strip>>>;
|
|
2586
2640
|
exitClass: z.ZodString;
|
|
2641
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2642
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2643
|
+
message: z.ZodString;
|
|
2644
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2646
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2647
|
+
address: z.ZodString;
|
|
2648
|
+
type: z.ZodString;
|
|
2649
|
+
reason: z.ZodString;
|
|
2650
|
+
}, z.core.$strip>>>;
|
|
2651
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2652
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
}, z.core.$strict>>;
|
|
2587
2654
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2588
2655
|
severity: z.ZodEnum<{
|
|
2589
2656
|
error: "error";
|
|
@@ -2652,6 +2719,19 @@ declare const SCHEMAS: {
|
|
|
2652
2719
|
treeHash: z.ZodString;
|
|
2653
2720
|
}, z.core.$strip>>>;
|
|
2654
2721
|
exitClass: z.ZodString;
|
|
2722
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
2723
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
2724
|
+
message: z.ZodString;
|
|
2725
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2726
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2728
|
+
address: z.ZodString;
|
|
2729
|
+
type: z.ZodString;
|
|
2730
|
+
reason: z.ZodString;
|
|
2731
|
+
}, z.core.$strip>>>;
|
|
2732
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2733
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
2734
|
+
}, z.core.$strict>>;
|
|
2655
2735
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2656
2736
|
severity: z.ZodEnum<{
|
|
2657
2737
|
error: "error";
|
|
@@ -3094,13 +3174,19 @@ declare const SCHEMAS: {
|
|
|
3094
3174
|
lace: "lace";
|
|
3095
3175
|
ecm: "ecm";
|
|
3096
3176
|
}>;
|
|
3177
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
3097
3178
|
}, z.core.$strip>>;
|
|
3098
3179
|
records: z.ZodArray<z.ZodObject<{
|
|
3180
|
+
id: z.ZodString;
|
|
3099
3181
|
externalSystemId: z.ZodString;
|
|
3100
3182
|
kind: z.ZodString;
|
|
3101
3183
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
3102
3184
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
3103
3185
|
state: z.ZodNullable<z.ZodString>;
|
|
3186
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
3187
|
+
approved: "approved";
|
|
3188
|
+
rejected: "rejected";
|
|
3189
|
+
}>>;
|
|
3104
3190
|
}, z.core.$strip>>;
|
|
3105
3191
|
}, z.core.$strip>>;
|
|
3106
3192
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3178,13 +3264,19 @@ declare const SCHEMAS: {
|
|
|
3178
3264
|
lace: "lace";
|
|
3179
3265
|
ecm: "ecm";
|
|
3180
3266
|
}>;
|
|
3267
|
+
recordId: z.ZodNullable<z.ZodString>;
|
|
3181
3268
|
}, z.core.$strip>>;
|
|
3182
3269
|
records: z.ZodArray<z.ZodObject<{
|
|
3270
|
+
id: z.ZodString;
|
|
3183
3271
|
externalSystemId: z.ZodString;
|
|
3184
3272
|
kind: z.ZodString;
|
|
3185
3273
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
3186
3274
|
externalUrl: z.ZodNullable<z.ZodString>;
|
|
3187
3275
|
state: z.ZodNullable<z.ZodString>;
|
|
3276
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
3277
|
+
approved: "approved";
|
|
3278
|
+
rejected: "rejected";
|
|
3279
|
+
}>>;
|
|
3188
3280
|
}, z.core.$strip>>;
|
|
3189
3281
|
}, z.core.$strip>>;
|
|
3190
3282
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3241,6 +3333,10 @@ declare const SCHEMAS: {
|
|
|
3241
3333
|
error: z.ZodNullable<z.ZodString>;
|
|
3242
3334
|
}, z.core.$strip>], "type">;
|
|
3243
3335
|
'stack scan': z.ZodObject<{
|
|
3336
|
+
stack: z.ZodObject<{
|
|
3337
|
+
id: z.ZodString;
|
|
3338
|
+
slug: z.ZodString;
|
|
3339
|
+
}, z.core.$strip>;
|
|
3244
3340
|
triggered: z.ZodBoolean;
|
|
3245
3341
|
reason: z.ZodNullable<z.ZodString>;
|
|
3246
3342
|
settled: z.ZodNullable<z.ZodObject<{
|
|
@@ -3248,6 +3344,8 @@ declare const SCHEMAS: {
|
|
|
3248
3344
|
driftCount: z.ZodNumber;
|
|
3249
3345
|
scannedAt: z.ZodString;
|
|
3250
3346
|
undeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3347
|
+
standingDriftFindings: z.ZodNumber;
|
|
3348
|
+
footprintDestroyed: z.ZodBoolean;
|
|
3251
3349
|
drift: z.ZodNullable<z.ZodObject<{
|
|
3252
3350
|
stackId: z.ZodString;
|
|
3253
3351
|
scannedAt: z.ZodString;
|
|
@@ -3319,8 +3417,13 @@ declare const SCHEMAS: {
|
|
|
3319
3417
|
slug: z.ZodString;
|
|
3320
3418
|
}, z.core.$strip>;
|
|
3321
3419
|
written: z.ZodArray<z.ZodString>;
|
|
3420
|
+
removed: z.ZodArray<z.ZodString>;
|
|
3322
3421
|
importBlocks: z.ZodNumber;
|
|
3323
|
-
importResiduals: z.ZodArray<z.
|
|
3422
|
+
importResiduals: z.ZodArray<z.ZodObject<{
|
|
3423
|
+
address: z.ZodString;
|
|
3424
|
+
type: z.ZodString;
|
|
3425
|
+
reason: z.ZodString;
|
|
3426
|
+
}, z.core.$strip>>;
|
|
3324
3427
|
validate: z.ZodObject<{
|
|
3325
3428
|
root: z.ZodOptional<z.ZodString>;
|
|
3326
3429
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -3369,6 +3472,19 @@ declare const SCHEMAS: {
|
|
|
3369
3472
|
treeHash: z.ZodString;
|
|
3370
3473
|
}, z.core.$strip>>>;
|
|
3371
3474
|
exitClass: z.ZodString;
|
|
3475
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
3476
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
3477
|
+
message: z.ZodString;
|
|
3478
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
importResiduals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3481
|
+
address: z.ZodString;
|
|
3482
|
+
type: z.ZodString;
|
|
3483
|
+
reason: z.ZodString;
|
|
3484
|
+
}, z.core.$strip>>>;
|
|
3485
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3486
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
3487
|
+
}, z.core.$strict>>;
|
|
3372
3488
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3373
3489
|
severity: z.ZodEnum<{
|
|
3374
3490
|
error: "error";
|
|
@@ -3593,18 +3709,6 @@ type BoundPath = keyof typeof SCHEMAS;
|
|
|
3593
3709
|
declare function isBoundPath(path: string): path is BoundPath;
|
|
3594
3710
|
type JsonOf<P> = P extends BoundPath ? z.infer<(typeof SCHEMAS)[P]> : unknown;
|
|
3595
3711
|
declare function parseBound<P extends BoundPath>(path: P, data: unknown): JsonOf<P>;
|
|
3596
|
-
declare const REASON_PREFIX = "REASON_";
|
|
3597
|
-
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
3598
|
-
type LaceReason = WireSpelling<keyof typeof Reason>;
|
|
3599
|
-
declare function reasonWire(reason: Reason): string;
|
|
3600
|
-
declare const commandFailureSchema: z.ZodObject<{
|
|
3601
|
-
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
3602
|
-
message: z.ZodString;
|
|
3603
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3604
|
-
tool: z.ZodOptional<z.ZodString>;
|
|
3605
|
-
apiCode: z.ZodOptional<z.ZodString>;
|
|
3606
|
-
}, z.core.$strict>;
|
|
3607
|
-
type CommandFailure = z.infer<typeof commandFailureSchema>;
|
|
3608
3712
|
declare function carriesFailure(data: unknown): boolean;
|
|
3609
3713
|
declare function parseCommandFailure(data: unknown): CommandFailure;
|
|
3610
3714
|
|
|
@@ -3733,6 +3837,9 @@ declare class ConnectError extends Error {
|
|
|
3733
3837
|
declare class CommandDetachedError extends Error {
|
|
3734
3838
|
constructor();
|
|
3735
3839
|
}
|
|
3840
|
+
declare class CommandUnobservedError extends Error {
|
|
3841
|
+
constructor();
|
|
3842
|
+
}
|
|
3736
3843
|
type Invocation<P extends BoundPath> = {
|
|
3737
3844
|
events: AsyncIterable<JsonOf<P>>;
|
|
3738
3845
|
cancel: () => Promise<void>;
|
|
@@ -3843,6 +3950,7 @@ type ActionTarget = {
|
|
|
3843
3950
|
groupId?: string;
|
|
3844
3951
|
diagnostic?: Diagnostic$1;
|
|
3845
3952
|
runId?: string;
|
|
3953
|
+
failure?: CommandFailure;
|
|
3846
3954
|
};
|
|
3847
3955
|
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
3848
3956
|
row: string;
|
|
@@ -3878,7 +3986,7 @@ type CommandBinding<P extends BoundPath> = {
|
|
|
3878
3986
|
kind: 'command';
|
|
3879
3987
|
path: P;
|
|
3880
3988
|
args: (ctx: RunCtx, target: ActionTarget) => Partial<ArgsOf<P>>;
|
|
3881
|
-
confirm?: (ctx: RunCtx, args: ArgsOf<P
|
|
3989
|
+
confirm?: (ctx: RunCtx, args: ArgsOf<P>, target: ActionTarget) => ConfirmSpec;
|
|
3882
3990
|
result: Sink<JsonOf<P>> & {
|
|
3883
3991
|
kind: ResultFor<P>;
|
|
3884
3992
|
};
|
|
@@ -3950,6 +4058,7 @@ type ActionIcon = 'validate' | 'convert' | 'save' | 'generate' | 'undo' | 'redo'
|
|
|
3950
4058
|
type ActionContribution = {
|
|
3951
4059
|
id: string;
|
|
3952
4060
|
label: string;
|
|
4061
|
+
choice?: string;
|
|
3953
4062
|
icon?: ActionIcon;
|
|
3954
4063
|
primary?: {
|
|
3955
4064
|
when?: ContextKey;
|
|
@@ -3967,6 +4076,7 @@ type ActionContribution = {
|
|
|
3967
4076
|
requiredPorts: readonly PortName[];
|
|
3968
4077
|
requiredContext?: readonly ContextKey[];
|
|
3969
4078
|
requiredTarget?: readonly (keyof ActionTarget)[];
|
|
4079
|
+
answers?: readonly LaceReason[];
|
|
3970
4080
|
enabledWhen?: readonly {
|
|
3971
4081
|
key: ContextKey;
|
|
3972
4082
|
reason: string;
|
|
@@ -4022,6 +4132,7 @@ type RunOutcome = {
|
|
|
4022
4132
|
} | {
|
|
4023
4133
|
kind: 'awaiting-approval';
|
|
4024
4134
|
changeRequest: GateChangeRequest;
|
|
4135
|
+
runUrl: string | null;
|
|
4025
4136
|
} | {
|
|
4026
4137
|
kind: 'blocked';
|
|
4027
4138
|
message: string;
|
|
@@ -4222,4 +4333,4 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
|
4222
4333
|
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4223
4334
|
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4224
4335
|
|
|
4225
|
-
export { type
|
|
4336
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef 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, reduceFollow 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, type GateChangeRequest as a6, type GenerateEvent as a7, type GraphError as a8, type HostBinding as a9, bridgeCaller as aA, carriesFailure as aB, connectCaller as aC, createActionRunner as aD, createResultStore as aE, currentReport as aF, defineCommand as aG, diagnosticsOf as aH, foldReport as aI, isBoundPath as aJ, openEngineCommands as aK, openEngineSession as aL, parseBound as aM, parseCommandFailure as aN, reportDiagnostics as aO, toArgv as aP, uniqueDiagnostics as aQ, Action as aR, InputMode as aS, type LaceReason as aT, type LiveSlots as aU, type OnScreen as aV, type RunPhase as aW, type RunPhaseStatus as aX, diagnosticsOfDocument as aY, liveSlots as aZ, reasonWire as a_, type Invocation as aa, type KeySpec as ab, type Placement as ac, type PortName as ad, type PresenterPort as ae, type PreviewSlot as af, Reason as ag, type ReportEntry as ah, type ReportFold as ai, type ReportPath as aj, type ReportSlot as ak, type ResultKind as al, type ResultSlots 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, reducePreview as b0, reduceReport as b1, reduceRun as b2, settleRun as b3, 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, type RunCtx as j, Bundle 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, COMMANDS as t, type ClipboardStore as u, type CommandBinding as v, CommandDetachedError as w, CommandExitError as x, type CommandFailure as y, type CommandPath as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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.24.0",
|
|
27
|
+
"@lace-cloud/ui": "0.24.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.3.12",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* The canvas's paper (PaperGrid.tsx): a layer filling the flow pane behind
|
|
2
|
-
* the graph, painted by the tokens' `.lace-paper-layers` recipe. The recipe
|
|
3
|
-
* reads `--lace-paper-pitch-*` and `--lace-paper-thread-*`; here they are
|
|
4
|
-
* the canvas paper's, scaled by the viewport's zoom (`--paper-zoom`) and
|
|
5
|
-
* faded as the threads crowd (`--paper-fine`, `--paper-major`), and the
|
|
6
|
-
* four layers start at the viewport's pan (`--paper-x`, `--paper-y`). */
|
|
7
|
-
.lace-canvas-paper {
|
|
8
|
-
position: absolute;
|
|
9
|
-
inset: 0;
|
|
10
|
-
z-index: -1;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
--lace-paper-pitch-fine: calc(var(--lace-canvas-paper-pitch-fine) * var(--paper-zoom, 1));
|
|
13
|
-
--lace-paper-pitch-major: calc(var(--lace-canvas-paper-pitch-major) * var(--paper-zoom, 1));
|
|
14
|
-
--lace-paper-thread-fine: color-mix(
|
|
15
|
-
in srgb,
|
|
16
|
-
var(--lace-canvas-paper-thread-fine) var(--paper-fine, 100%),
|
|
17
|
-
transparent
|
|
18
|
-
);
|
|
19
|
-
--lace-paper-thread-major: color-mix(
|
|
20
|
-
in srgb,
|
|
21
|
-
var(--lace-canvas-paper-thread-major) var(--paper-major, 100%),
|
|
22
|
-
transparent
|
|
23
|
-
);
|
|
24
|
-
background-position: var(--paper-x, 0) var(--paper-y, 0);
|
|
25
|
-
}
|