@lace-cloud/canvas 0.12.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
@@ -95,6 +95,14 @@ interface Use {
95
95
  count: Binding | undefined;
96
96
  /** for_each meta-argument */
97
97
  for_each: Binding | undefined;
98
+ /**
99
+ * A module call's `providers = {}` map (child-local name → root ref).
100
+ * Each entry targets the child's default provider slot for that name;
101
+ * this map has no way to target an aliased child slot.
102
+ */
103
+ providers: {
104
+ [key: string]: string;
105
+ };
98
106
  }
99
107
  declare const Use: MessageFns<Use>;
100
108
  interface Resource {
@@ -174,6 +182,7 @@ declare const TerraformBlock: MessageFns<TerraformBlock>;
174
182
  interface ProviderRequirement {
175
183
  source: string;
176
184
  version: string;
185
+ configuration_aliases: string[];
177
186
  }
178
187
  declare const ProviderRequirement: MessageFns<ProviderRequirement>;
179
188
  interface BackendConfig {
@@ -302,6 +311,9 @@ type EngineEvent = {
302
311
  } | {
303
312
  type: 'policyResolution';
304
313
  resolution: PolicyResolution;
314
+ } | {
315
+ type: 'loadError';
316
+ message: string;
305
317
  };
306
318
  type EngineEventListener = (event: EngineEvent) => void;
307
319
  type GenerateResult = {
@@ -1066,6 +1078,7 @@ declare class SnapshotCanvasEngine implements CanvasEngine {
1066
1078
  private projectInput;
1067
1079
  private loadView;
1068
1080
  private fetchBytes;
1081
+ private fetchLayouts;
1069
1082
  getCurrentView(): CanvasView | null;
1070
1083
  sessionOpen(): Promise<CanvasView>;
1071
1084
  sessionSave(): Promise<{
@@ -1141,6 +1154,9 @@ type CanvasState = {
1141
1154
  generation: number;
1142
1155
  viewportIntent: ViewportIntent | null;
1143
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;
1144
1160
  };
1145
1161
  type CanvasContextValue = {
1146
1162
  state: CanvasState;
package/dist/index.d.ts CHANGED
@@ -95,6 +95,14 @@ interface Use {
95
95
  count: Binding | undefined;
96
96
  /** for_each meta-argument */
97
97
  for_each: Binding | undefined;
98
+ /**
99
+ * A module call's `providers = {}` map (child-local name → root ref).
100
+ * Each entry targets the child's default provider slot for that name;
101
+ * this map has no way to target an aliased child slot.
102
+ */
103
+ providers: {
104
+ [key: string]: string;
105
+ };
98
106
  }
99
107
  declare const Use: MessageFns<Use>;
100
108
  interface Resource {
@@ -174,6 +182,7 @@ declare const TerraformBlock: MessageFns<TerraformBlock>;
174
182
  interface ProviderRequirement {
175
183
  source: string;
176
184
  version: string;
185
+ configuration_aliases: string[];
177
186
  }
178
187
  declare const ProviderRequirement: MessageFns<ProviderRequirement>;
179
188
  interface BackendConfig {
@@ -302,6 +311,9 @@ type EngineEvent = {
302
311
  } | {
303
312
  type: 'policyResolution';
304
313
  resolution: PolicyResolution;
314
+ } | {
315
+ type: 'loadError';
316
+ message: string;
305
317
  };
306
318
  type EngineEventListener = (event: EngineEvent) => void;
307
319
  type GenerateResult = {
@@ -1066,6 +1078,7 @@ declare class SnapshotCanvasEngine implements CanvasEngine {
1066
1078
  private projectInput;
1067
1079
  private loadView;
1068
1080
  private fetchBytes;
1081
+ private fetchLayouts;
1069
1082
  getCurrentView(): CanvasView | null;
1070
1083
  sessionOpen(): Promise<CanvasView>;
1071
1084
  sessionSave(): Promise<{
@@ -1141,6 +1154,9 @@ type CanvasState = {
1141
1154
  generation: number;
1142
1155
  viewportIntent: ViewportIntent | null;
1143
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;
1144
1160
  };
1145
1161
  type CanvasContextValue = {
1146
1162
  state: CanvasState;