@lace-cloud/canvas 0.13.0 → 0.14.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/index.d.mts CHANGED
@@ -98,8 +98,7 @@ interface Use {
98
98
  /**
99
99
  * A module call's `providers = {}` map (child-local name → root ref).
100
100
  * Each entry targets the child's default provider slot for that name;
101
- * aliased child slots are not expressible in this message
102
- * (ProviderRequirement carries no configuration_aliases).
101
+ * this map has no way to target an aliased child slot.
103
102
  */
104
103
  providers: {
105
104
  [key: string]: string;
@@ -183,6 +182,7 @@ declare const TerraformBlock: MessageFns<TerraformBlock>;
183
182
  interface ProviderRequirement {
184
183
  source: string;
185
184
  version: string;
185
+ configuration_aliases: string[];
186
186
  }
187
187
  declare const ProviderRequirement: MessageFns<ProviderRequirement>;
188
188
  interface BackendConfig {
@@ -311,6 +311,9 @@ type EngineEvent = {
311
311
  } | {
312
312
  type: 'policyResolution';
313
313
  resolution: PolicyResolution;
314
+ } | {
315
+ type: 'loadError';
316
+ message: string;
314
317
  };
315
318
  type EngineEventListener = (event: EngineEvent) => void;
316
319
  type GenerateResult = {
@@ -1075,6 +1078,7 @@ declare class SnapshotCanvasEngine implements CanvasEngine {
1075
1078
  private projectInput;
1076
1079
  private loadView;
1077
1080
  private fetchBytes;
1081
+ private fetchLayouts;
1078
1082
  getCurrentView(): CanvasView | null;
1079
1083
  sessionOpen(): Promise<CanvasView>;
1080
1084
  sessionSave(): Promise<{
@@ -1150,6 +1154,9 @@ type CanvasState = {
1150
1154
  generation: number;
1151
1155
  viewportIntent: ViewportIntent | null;
1152
1156
  viewportIntentSeq: number;
1157
+ /** Set when the engine emits `loadError` — the initial view load failed
1158
+ * and no `stateUpdated` will ever follow. Null in every other state. */
1159
+ loadError: string | null;
1153
1160
  };
1154
1161
  type CanvasContextValue = {
1155
1162
  state: CanvasState;
package/dist/index.d.ts CHANGED
@@ -98,8 +98,7 @@ interface Use {
98
98
  /**
99
99
  * A module call's `providers = {}` map (child-local name → root ref).
100
100
  * Each entry targets the child's default provider slot for that name;
101
- * aliased child slots are not expressible in this message
102
- * (ProviderRequirement carries no configuration_aliases).
101
+ * this map has no way to target an aliased child slot.
103
102
  */
104
103
  providers: {
105
104
  [key: string]: string;
@@ -183,6 +182,7 @@ declare const TerraformBlock: MessageFns<TerraformBlock>;
183
182
  interface ProviderRequirement {
184
183
  source: string;
185
184
  version: string;
185
+ configuration_aliases: string[];
186
186
  }
187
187
  declare const ProviderRequirement: MessageFns<ProviderRequirement>;
188
188
  interface BackendConfig {
@@ -311,6 +311,9 @@ type EngineEvent = {
311
311
  } | {
312
312
  type: 'policyResolution';
313
313
  resolution: PolicyResolution;
314
+ } | {
315
+ type: 'loadError';
316
+ message: string;
314
317
  };
315
318
  type EngineEventListener = (event: EngineEvent) => void;
316
319
  type GenerateResult = {
@@ -1075,6 +1078,7 @@ declare class SnapshotCanvasEngine implements CanvasEngine {
1075
1078
  private projectInput;
1076
1079
  private loadView;
1077
1080
  private fetchBytes;
1081
+ private fetchLayouts;
1078
1082
  getCurrentView(): CanvasView | null;
1079
1083
  sessionOpen(): Promise<CanvasView>;
1080
1084
  sessionSave(): Promise<{
@@ -1150,6 +1154,9 @@ type CanvasState = {
1150
1154
  generation: number;
1151
1155
  viewportIntent: ViewportIntent | null;
1152
1156
  viewportIntentSeq: number;
1157
+ /** Set when the engine emits `loadError` — the initial view load failed
1158
+ * and no `stateUpdated` will ever follow. Null in every other state. */
1159
+ loadError: string | null;
1153
1160
  };
1154
1161
  type CanvasContextValue = {
1155
1162
  state: CanvasState;