forgeframe 0.0.3 → 0.0.4

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.
@@ -150,7 +150,7 @@ export declare class FunctionBridge {
150
150
  *
151
151
  * @public
152
152
  */
153
- export declare function serializeFunctions(obj: unknown, bridge: FunctionBridge, seen?: WeakSet<object>): unknown;
153
+ export declare function serializeFunctions(obj: unknown, bridge: FunctionBridge, stack?: WeakSet<object>): unknown;
154
154
  /**
155
155
  * Recursively deserializes all function references in an object.
156
156
  *
@@ -163,5 +163,5 @@ export declare function serializeFunctions(obj: unknown, bridge: FunctionBridge,
163
163
  *
164
164
  * @public
165
165
  */
166
- export declare function deserializeFunctions(obj: unknown, bridge: FunctionBridge, targetWin: Window, targetDomain: string, seen?: WeakSet<object>): unknown;
166
+ export declare function deserializeFunctions(obj: unknown, bridge: FunctionBridge, targetWin: Window, targetDomain: string, stack?: WeakSet<object>): unknown;
167
167
  export {};
@@ -57,6 +57,10 @@ export declare class Messenger {
57
57
  private allowedOrigins;
58
58
  /** @internal */
59
59
  private allowedOriginPatterns;
60
+ /** @internal */
61
+ private wildcardPatternRegistry;
62
+ /** @internal */
63
+ private sourceUidRegistry;
60
64
  /**
61
65
  * Creates a new Messenger instance.
62
66
  *
@@ -86,6 +90,11 @@ export declare class Messenger {
86
90
  * @internal
87
91
  */
88
92
  private isOriginTrusted;
93
+ /**
94
+ * Resolves source identity from the browser event context.
95
+ * @internal
96
+ */
97
+ private resolveVerifiedSource;
89
98
  /**
90
99
  * Sends a message and waits for a response.
91
100
  *
@@ -72,6 +72,8 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
72
72
  /** @internal */
73
73
  private initPromise;
74
74
  /** @internal */
75
+ private hostInitialized;
76
+ /** @internal */
75
77
  private rendered;
76
78
  /** @internal */
77
79
  private destroyed;
@@ -156,7 +158,7 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
156
158
  * Updates the component props and sends them to the host.
157
159
  *
158
160
  * @remarks
159
- * Props are normalized and serialized before being sent to the host window.
161
+ * Props are normalized and validated before being sent to the host window.
160
162
  *
161
163
  * @param newProps - Partial props object to merge with existing props
162
164
  */
@@ -279,6 +281,21 @@ export declare class ConsumerComponent<P extends Record<string, unknown>, X = un
279
281
  * @internal
280
282
  */
281
283
  private setupMessageHandlers;
284
+ /**
285
+ * Sets up host lifecycle command handlers.
286
+ * @internal
287
+ */
288
+ private setupHostLifecycleHandlers;
289
+ /**
290
+ * Sets up host data exchange handlers.
291
+ * @internal
292
+ */
293
+ private setupHostDataHandlers;
294
+ /**
295
+ * Gets sibling component instances for a request.
296
+ * @internal
297
+ */
298
+ private getSiblingInstances;
282
299
  /**
283
300
  * Registers cleanup handlers for the instance.
284
301
  * @internal