@vvfx/sdk 0.2.4 → 0.2.6
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/html-overlay/auto-height-runtime.d.ts +3 -0
- package/dist/html-overlay/manager.d.ts +2 -1
- package/dist/{index.mjs → index.cjs} +648 -22679
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +76 -22089
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/index.mjs.map +0 -1
|
@@ -11,8 +11,11 @@ export type CardHTMLAutoHeightRequest = {
|
|
|
11
11
|
export type CardHTMLAutoHeightOptions = {
|
|
12
12
|
autoHeightId?: string;
|
|
13
13
|
onAutoHeight?: (height: number) => void;
|
|
14
|
+
onStreamRuntimePhase?: (phase: CardHTMLStreamRuntimePhase) => void;
|
|
14
15
|
};
|
|
16
|
+
export type CardHTMLStreamRuntimePhase = 'parsing' | 'draining' | 'complete' | 'finalizing' | 'disposed' | 'error';
|
|
15
17
|
export declare function createAutoHeightMessageListener(iframe: HTMLIFrameElement, options?: CardHTMLAutoHeightOptions): CardHTMLRenderCleanup;
|
|
18
|
+
export declare function getCardHTMLStreamRuntimePhase(data: unknown): CardHTMLStreamRuntimePhase | undefined;
|
|
16
19
|
export declare function isCardHTMLAutoHeightMessage(data: unknown, id: string): data is CardHTMLAutoHeightMessage;
|
|
17
20
|
export declare function requestCardHTMLAutoHeight(iframe: HTMLIFrameElement, id: string): void;
|
|
18
21
|
export declare function withCardHTMLAutoHeightBridge(html: string, id?: string): string;
|
|
@@ -133,9 +133,10 @@ export declare class HTMLOverlayManager {
|
|
|
133
133
|
private getChildrenNaturalHeight;
|
|
134
134
|
private cleanupAutoHeight;
|
|
135
135
|
private applyAutoHeight;
|
|
136
|
+
private setAutoHeightStreamPhase;
|
|
137
|
+
private isAutoHeightStreamActive;
|
|
136
138
|
private getAutoHeightAnchor;
|
|
137
139
|
private getAutoHeightItemHeight;
|
|
138
|
-
private isAutoHeightMessage;
|
|
139
140
|
private isAutoHeightEnabled;
|
|
140
141
|
private isAutoScaleEnabled;
|
|
141
142
|
}
|