Skip to content

Commit adbd3d4

Browse files
committed
SCAL-262671 : rename
1 parent 76de2f7 commit adbd3d4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/embed/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class AppEmbed extends V1Embed {
529529
getIframe: () => this.iFrame,
530530
onEmbedEvent: (event, callback) => this.on(event, callback),
531531
getViewConfig: () => this.viewConfig,
532-
triggerEmbedEvent: (event, data) => this.trigger(event, data),
532+
triggerHostEvent: (event, data) => this.trigger(event, data),
533533
});
534534
}
535535
}

src/embed/liveboard.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import {
2222
LiveboardAppEmbedViewConfig,
2323
FullHeightViewConfig,
2424
} from '../types';
25-
import { calculateVisibleElementData, getQueryParamString, isUndefined } from '../utils';
26-
import { getAuthPromise } from './base';
25+
import { getQueryParamString, isUndefined } from '../utils';
2726
import { TsEmbed, V1Embed } from './ts-embed';
2827
import { addPreviewStylesIfNotPresent } from '../utils/global-styles';
2928
import { TriggerPayload, TriggerResponse } from './hostEventClient/contracts';
@@ -318,7 +317,7 @@ export class LiveboardEmbed extends V1Embed {
318317
getIframe: () => this.iFrame,
319318
onEmbedEvent: (event, callback) => this.on(event, callback),
320319
getViewConfig: () => this.viewConfig,
321-
triggerEmbedEvent: (event, data) => this.trigger(event, data),
320+
triggerHostEvent: (event, data) => this.trigger(event, data),
322321
});
323322
}
324323
}

src/full-height.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ interface FullHeightConfig {
99
getIframe: () => HTMLIFrameElement;
1010
onEmbedEvent: (event: EmbedEvent, callback: MessageCallback) => void;
1111
getViewConfig: () => FullHeightViewConfig & BaseViewConfig;
12-
triggerEmbedEvent: (event: HostEvent, data: any) => Promise<any>;
12+
triggerHostEvent: (event: HostEvent, data: any) => Promise<any>;
1313
}
1414

1515

1616
export class FullHeight {
1717

1818
private onEmbedMessage: FullHeightConfig['onEmbedEvent'];
1919
private getViewConfig: FullHeightConfig['getViewConfig'];
20-
private triggerEmbedEvent: FullHeightConfig['triggerEmbedEvent'];
20+
private triggerHostEvent: FullHeightConfig['triggerHostEvent'];
2121
private getIframe: FullHeightConfig['getIframe'];
2222
private defaultHeight: string | number = '100%';
2323

2424
constructor(fullHeightConfig: FullHeightConfig) {
2525
this.getIframe = fullHeightConfig.getIframe;
2626
this.onEmbedMessage = fullHeightConfig.onEmbedEvent;
2727
this.getViewConfig = fullHeightConfig.getViewConfig;
28-
this.triggerEmbedEvent = fullHeightConfig.triggerEmbedEvent;
28+
this.triggerHostEvent = fullHeightConfig.triggerHostEvent;
2929
this.defaultHeight = this.getViewConfig().defaultHeight || this.defaultHeight;
3030
}
3131
/**
@@ -48,7 +48,7 @@ export class FullHeight {
4848

4949
private sendFullHeightLazyLoadData = () => {
5050
const data = calculateVisibleElementData(this.getIframe());
51-
this.triggerEmbedEvent(HostEvent.VisibleEmbedCoordinates, data);
51+
this.triggerHostEvent(HostEvent.VisibleEmbedCoordinates, data);
5252
}
5353
private setIframeHeightForNonEmbedLiveboard = (data: MessagePayload) => {
5454
const viewConfig = this.getViewConfig();

0 commit comments

Comments
 (0)