@@ -9,23 +9,23 @@ interface FullHeightConfig {
9
9
getIframe : ( ) => HTMLIFrameElement ;
10
10
onEmbedEvent : ( event : EmbedEvent , callback : MessageCallback ) => void ;
11
11
getViewConfig : ( ) => FullHeightViewConfig & BaseViewConfig ;
12
- triggerEmbedEvent : ( event : HostEvent , data : any ) => Promise < any > ;
12
+ triggerHostEvent : ( event : HostEvent , data : any ) => Promise < any > ;
13
13
}
14
14
15
15
16
16
export class FullHeight {
17
17
18
18
private onEmbedMessage : FullHeightConfig [ 'onEmbedEvent' ] ;
19
19
private getViewConfig : FullHeightConfig [ 'getViewConfig' ] ;
20
- private triggerEmbedEvent : FullHeightConfig [ 'triggerEmbedEvent ' ] ;
20
+ private triggerHostEvent : FullHeightConfig [ 'triggerHostEvent ' ] ;
21
21
private getIframe : FullHeightConfig [ 'getIframe' ] ;
22
22
private defaultHeight : string | number = '100%' ;
23
23
24
24
constructor ( fullHeightConfig : FullHeightConfig ) {
25
25
this . getIframe = fullHeightConfig . getIframe ;
26
26
this . onEmbedMessage = fullHeightConfig . onEmbedEvent ;
27
27
this . getViewConfig = fullHeightConfig . getViewConfig ;
28
- this . triggerEmbedEvent = fullHeightConfig . triggerEmbedEvent ;
28
+ this . triggerHostEvent = fullHeightConfig . triggerHostEvent ;
29
29
this . defaultHeight = this . getViewConfig ( ) . defaultHeight || this . defaultHeight ;
30
30
}
31
31
/**
@@ -48,7 +48,7 @@ export class FullHeight {
48
48
49
49
private sendFullHeightLazyLoadData = ( ) => {
50
50
const data = calculateVisibleElementData ( this . getIframe ( ) ) ;
51
- this . triggerEmbedEvent ( HostEvent . VisibleEmbedCoordinates , data ) ;
51
+ this . triggerHostEvent ( HostEvent . VisibleEmbedCoordinates , data ) ;
52
52
}
53
53
private setIframeHeightForNonEmbedLiveboard = ( data : MessagePayload ) => {
54
54
const viewConfig = this . getViewConfig ( ) ;
0 commit comments