forgeframe 0.0.4 → 0.0.5

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.
@@ -60,6 +60,14 @@ export declare function create<P extends Record<string, unknown> = Record<string
60
60
  * @public
61
61
  */
62
62
  export declare function getComponent<P extends Record<string, unknown> = Record<string, unknown>, X = unknown>(tag: string): ForgeFrameComponent<P, X> | undefined;
63
+ /**
64
+ * Returns all registered components as tag/component pairs.
65
+ * @internal
66
+ */
67
+ export declare function getRegisteredComponents(): Array<[
68
+ string,
69
+ ForgeFrameComponent<Record<string, unknown>>
70
+ ]>;
63
71
  /**
64
72
  * Returns the internal options metadata for a component factory.
65
73
  * @internal
@@ -50,6 +50,8 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
50
50
  /** @internal */
51
51
  private props;
52
52
  /** @internal */
53
+ private inputProps;
54
+ /** @internal */
53
55
  private context;
54
56
  /** @internal */
55
57
  private messenger;
@@ -77,6 +79,8 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
77
79
  private rendered;
78
80
  /** @internal */
79
81
  private destroyed;
82
+ /** @internal */
83
+ private pendingPropsUpdate;
80
84
  /**
81
85
  * Creates a new ConsumerComponent instance.
82
86
  *
@@ -163,6 +167,46 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
163
167
  * @param newProps - Partial props object to merge with existing props
164
168
  */
165
169
  updateProps(newProps: Partial<P>): Promise<void>;
170
+ /**
171
+ * Applies a props update and synchronizes it to the host when connected.
172
+ * @internal
173
+ */
174
+ private applyPropsUpdate;
175
+ /**
176
+ * Builds and validates the next props snapshot.
177
+ * @internal
178
+ */
179
+ private buildNextProps;
180
+ /**
181
+ * Prevents origin changes after render for security and routing consistency.
182
+ * @internal
183
+ */
184
+ private assertStableRenderedOrigin;
185
+ /**
186
+ * Sends the current props snapshot to the host window when available.
187
+ * @internal
188
+ */
189
+ private sendPropsUpdateToHost;
190
+ /**
191
+ * Emits prop update lifecycle hooks.
192
+ * @internal
193
+ */
194
+ private emitPropsUpdated;
195
+ /**
196
+ * Queues prop updates when a previous host sync is in flight.
197
+ * @internal
198
+ */
199
+ private queuePropsUpdate;
200
+ /**
201
+ * Tracks pending updates only when host synchronization is active.
202
+ * @internal
203
+ */
204
+ private trackPendingUpdateIfHostConnected;
205
+ /**
206
+ * Tracks a promise as the active queued update and clears it when settled.
207
+ * @internal
208
+ */
209
+ private trackPendingUpdate;
166
210
  /**
167
211
  * Creates a clone of this instance with the same props.
168
212
  *
@@ -256,6 +300,11 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
256
300
  * @internal
257
301
  */
258
302
  private buildWindowName;
303
+ /**
304
+ * Serializes host props while keeping function bridge references in sync.
305
+ * @internal
306
+ */
307
+ private serializePropsForHost;
259
308
  /**
260
309
  * Builds component references for nested host components.
261
310
  * @internal
@@ -180,6 +180,11 @@ export declare class HostComponent<P extends Record<string, unknown>> {
180
180
  * @internal
181
181
  */
182
182
  private setupMessageHandlers;
183
+ /**
184
+ * Removes stale prop keys that are no longer present in the latest consumer payload.
185
+ * @internal
186
+ */
187
+ private removeStaleHostProps;
183
188
  /**
184
189
  * Destroys the host component and cleans up resources.
185
190
  */