@splash-tech/jackpot-sdk 3.0.4 → 3.0.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/README.md +2 -0
- package/dist/clients/h4n8w3vt/FooterWidget.d.ts +1 -1
- package/dist/clients/h4n8w3vt/FooterWidget.js +15 -1
- package/dist/clients/h4n8w3vt/LobbyWidget.d.ts +0 -0
- package/dist/clients/h4n8w3vt/LobbyWidget.js +70 -0
- package/dist/clients/x7k2m9qp/FooterWidget.d.ts +0 -1
- package/dist/clients/x7k2m9qp/FooterWidget.js +4 -1
- package/dist/compat/v2/mapLaunchParams.d.ts +2 -2
- package/dist/compat/v2/mapLaunchParams.js +3 -2
- package/dist/compat/v2/types.d.ts +2 -0
- package/dist/core/FooterWidgetBase.d.ts +6 -3
- package/dist/core/FooterWidgetBase.js +17 -1
- package/dist/core/LobbyWidgetBase.d.ts +0 -0
- package/dist/core/LobbyWidgetBase.js +71 -0
- package/dist/core/types.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,7 @@ splashJackpot.winWidget.launch({
|
|
|
54
54
|
| container | string | document.body | CSS selector where widget will be injected |
|
|
55
55
|
| mode | string | production | SDK environment (`local`, `dev`, `staging`, `production`) |
|
|
56
56
|
| maxWidth | string | '1300px' | Maximum width of the footer widget |
|
|
57
|
+
| height | string | '50px' | Height of the footer widget |
|
|
57
58
|
|
|
58
59
|
Example:
|
|
59
60
|
|
|
@@ -63,6 +64,7 @@ splashJackpot.footerWidget.launch({
|
|
|
63
64
|
container: '#game-container',
|
|
64
65
|
mode: 'production',
|
|
65
66
|
maxWidth: '100%',
|
|
67
|
+
height: '80px',
|
|
66
68
|
});
|
|
67
69
|
```
|
|
68
70
|
|
|
@@ -2,9 +2,9 @@ import { FooterWidgetBase } from '../../core/FooterWidgetBase';
|
|
|
2
2
|
import { FooterWidgetConfig, FooterWidgetEvents } from './types';
|
|
3
3
|
export declare class FooterWidget extends FooterWidgetBase<FooterWidgetConfig, FooterWidgetEvents> {
|
|
4
4
|
protected readonly route = "/footer-widget";
|
|
5
|
-
protected readonly height = "64px";
|
|
6
5
|
protected sendInitialData(): void;
|
|
7
6
|
protected sendDataUpdate(partialData: object): void;
|
|
8
7
|
protected handleChildMessage(type: string | undefined): boolean;
|
|
8
|
+
showPopup(): void;
|
|
9
9
|
showWinPopup(data: unknown): void;
|
|
10
10
|
}
|
|
@@ -2,6 +2,7 @@ import { FooterWidgetBase } from '../../core/FooterWidgetBase';
|
|
|
2
2
|
var IncomingEvent;
|
|
3
3
|
(function (IncomingEvent) {
|
|
4
4
|
IncomingEvent["footerWidgetLoaded"] = "jackpot-footer-widget-loaded";
|
|
5
|
+
IncomingEvent["ready"] = "jackpot-footer-widget-ready";
|
|
5
6
|
IncomingEvent["participateChange"] = "jackpot-footer-widget-participate-change";
|
|
6
7
|
IncomingEvent["showPopup"] = "jackpot-footer-widget-popup-show";
|
|
7
8
|
IncomingEvent["hidePopup"] = "jackpot-footer-widget-popup-hide";
|
|
@@ -12,12 +13,12 @@ var OutgoingEvent;
|
|
|
12
13
|
OutgoingEvent["footerWidgetDataInitial"] = "jackpot-footer-widget-data-initial";
|
|
13
14
|
OutgoingEvent["footerWidgetDataUpdated"] = "jackpot-footer-widget-data-updated";
|
|
14
15
|
OutgoingEvent["showWinPopup"] = "jackpot-footer-widget-win-popup-show";
|
|
16
|
+
OutgoingEvent["showPopup"] = "jackpot-footer-widget-popup-show";
|
|
15
17
|
})(OutgoingEvent || (OutgoingEvent = {}));
|
|
16
18
|
export class FooterWidget extends FooterWidgetBase {
|
|
17
19
|
constructor() {
|
|
18
20
|
super(...arguments);
|
|
19
21
|
this.route = '/footer-widget';
|
|
20
|
-
this.height = '64px';
|
|
21
22
|
}
|
|
22
23
|
sendInitialData() {
|
|
23
24
|
this.sendToChild({
|
|
@@ -37,6 +38,9 @@ export class FooterWidget extends FooterWidgetBase {
|
|
|
37
38
|
case IncomingEvent.footerWidgetLoaded:
|
|
38
39
|
this.sendInitialData();
|
|
39
40
|
return true;
|
|
41
|
+
case IncomingEvent.ready:
|
|
42
|
+
this.onChildAppLoaded();
|
|
43
|
+
return true;
|
|
40
44
|
case IncomingEvent.participateChange:
|
|
41
45
|
this.emit('participateChange');
|
|
42
46
|
return true;
|
|
@@ -56,6 +60,16 @@ export class FooterWidget extends FooterWidgetBase {
|
|
|
56
60
|
return false;
|
|
57
61
|
}
|
|
58
62
|
}
|
|
63
|
+
showPopup() {
|
|
64
|
+
if (!this.isLaunched()) {
|
|
65
|
+
console.warn('Footer widget must be launched before showPopup');
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.sendToChild({
|
|
69
|
+
type: OutgoingEvent.showPopup,
|
|
70
|
+
data: null,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
59
73
|
showWinPopup(data) {
|
|
60
74
|
if (!this.isLaunched()) {
|
|
61
75
|
console.warn('Footer widget must be launched before showWinPopup');
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { LobbyWidgetBase } from '../../core/LobbyWidgetBase';
|
|
3
|
+
// import { InitialChildMessage } from '../../core/types';
|
|
4
|
+
// import { LobbyWidgetConfig, LobbyWidgetEvents } from './types';
|
|
5
|
+
// enum IncomingEvent {
|
|
6
|
+
// lobbyWidgetLoaded = 'jackpot-lobby-widget-loaded',
|
|
7
|
+
// optInToggle = 'jackpot-lobby-widget-opt-in-toggle',
|
|
8
|
+
// showAll = 'jackpot-lobby-widget-show-all',
|
|
9
|
+
// toggleFavorite = 'jackpot-lobby-widget-toggle-favorite',
|
|
10
|
+
// infoClick = 'jackpot-lobby-widget-info-click',
|
|
11
|
+
// gameClick = 'jackpot-lobby-widget-game-click',
|
|
12
|
+
// resize = 'jackpot-lobby-widget-resize',
|
|
13
|
+
// }
|
|
14
|
+
// enum OutgoingEvent {
|
|
15
|
+
// lobbyWidgetDataInitial = 'jackpot-lobby-widget-data-initial',
|
|
16
|
+
// lobbyWidgetDataUpdated = 'jackpot-lobby-widget-data-updated',
|
|
17
|
+
// }
|
|
18
|
+
// export class LobbyWidget extends LobbyWidgetBase<
|
|
19
|
+
// LobbyWidgetConfig,
|
|
20
|
+
// LobbyWidgetEvents
|
|
21
|
+
// > {
|
|
22
|
+
// protected readonly route = '/lobby-widget';
|
|
23
|
+
// protected sendInitialData(): void {
|
|
24
|
+
// this.sendToChild({
|
|
25
|
+
// type: OutgoingEvent.lobbyWidgetDataInitial,
|
|
26
|
+
// data: this.data,
|
|
27
|
+
// config: this.config,
|
|
28
|
+
// } satisfies InitialChildMessage<LobbyWidgetConfig>);
|
|
29
|
+
// }
|
|
30
|
+
// protected sendDataUpdate(partialData: object): void {
|
|
31
|
+
// this.sendToChild({
|
|
32
|
+
// type: OutgoingEvent.lobbyWidgetDataUpdated,
|
|
33
|
+
// data: partialData,
|
|
34
|
+
// });
|
|
35
|
+
// }
|
|
36
|
+
// protected handleChildMessage(
|
|
37
|
+
// type: string | undefined,
|
|
38
|
+
// payload?: unknown,
|
|
39
|
+
// ): boolean {
|
|
40
|
+
// switch (type) {
|
|
41
|
+
// case IncomingEvent.lobbyWidgetLoaded:
|
|
42
|
+
// this.sendInitialData();
|
|
43
|
+
// return true;
|
|
44
|
+
// case IncomingEvent.optInToggle:
|
|
45
|
+
// this.emit('optInToggle');
|
|
46
|
+
// return true;
|
|
47
|
+
// case IncomingEvent.showAll:
|
|
48
|
+
// this.emit('showAll');
|
|
49
|
+
// return true;
|
|
50
|
+
// case IncomingEvent.toggleFavorite:
|
|
51
|
+
// this.emit('toggleFavorite', payload);
|
|
52
|
+
// return true;
|
|
53
|
+
// case IncomingEvent.infoClick:
|
|
54
|
+
// this.emit('infoClick');
|
|
55
|
+
// return true;
|
|
56
|
+
// case IncomingEvent.gameClick:
|
|
57
|
+
// this.emit('gameClick', payload);
|
|
58
|
+
// return true;
|
|
59
|
+
// case IncomingEvent.resize: {
|
|
60
|
+
// const height = (payload as { height?: number } | undefined)?.height;
|
|
61
|
+
// if (this.iframe && typeof height === 'number' && height > 0) {
|
|
62
|
+
// this.iframe.style.height = `${height}px`;
|
|
63
|
+
// }
|
|
64
|
+
// return true;
|
|
65
|
+
// }
|
|
66
|
+
// default:
|
|
67
|
+
// return false;
|
|
68
|
+
// }
|
|
69
|
+
// }
|
|
70
|
+
// }
|
|
@@ -2,7 +2,6 @@ import { FooterWidgetBase } from '../../core/FooterWidgetBase';
|
|
|
2
2
|
import { FooterWidgetConfig, FooterWidgetEvents } from './types';
|
|
3
3
|
export declare class FooterWidget extends FooterWidgetBase<FooterWidgetConfig, FooterWidgetEvents> {
|
|
4
4
|
protected readonly route = "/footer-widget";
|
|
5
|
-
protected readonly height = "50px";
|
|
6
5
|
protected sendInitialData(): void;
|
|
7
6
|
protected sendDataUpdate(partialData: object): void;
|
|
8
7
|
protected handleChildMessage(type: string | undefined): boolean;
|
|
@@ -2,6 +2,7 @@ import { FooterWidgetBase } from '../../core/FooterWidgetBase';
|
|
|
2
2
|
var IncomingEvent;
|
|
3
3
|
(function (IncomingEvent) {
|
|
4
4
|
IncomingEvent["footerWidgetLoaded"] = "jackpot-footer-widget-loaded";
|
|
5
|
+
IncomingEvent["ready"] = "jackpot-footer-widget-ready";
|
|
5
6
|
IncomingEvent["participateChange"] = "jackpot-footer-widget-participate-change";
|
|
6
7
|
IncomingEvent["showPopup"] = "jackpot-footer-widget-popup-show";
|
|
7
8
|
IncomingEvent["hidePopup"] = "jackpot-footer-widget-popup-hide";
|
|
@@ -15,7 +16,6 @@ export class FooterWidget extends FooterWidgetBase {
|
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
this.route = '/footer-widget';
|
|
18
|
-
this.height = '50px';
|
|
19
19
|
}
|
|
20
20
|
sendInitialData() {
|
|
21
21
|
this.sendToChild({
|
|
@@ -35,6 +35,9 @@ export class FooterWidget extends FooterWidgetBase {
|
|
|
35
35
|
case IncomingEvent.footerWidgetLoaded:
|
|
36
36
|
this.sendInitialData();
|
|
37
37
|
return true;
|
|
38
|
+
case IncomingEvent.ready:
|
|
39
|
+
this.onChildAppLoaded();
|
|
40
|
+
return true;
|
|
38
41
|
case IncomingEvent.showPopup:
|
|
39
42
|
this.emit('showPopup');
|
|
40
43
|
this.expandIframe();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FooterWidgetLaunchParams, WidgetLaunchParams, WinWidgetBaseConfig } from '../../core/types';
|
|
2
2
|
import { V2FooterWidgetLaunchParams, V2WinWidgetLaunchParams } from './types';
|
|
3
|
-
export declare function mapV2FooterWidgetLaunchParams(params: V2FooterWidgetLaunchParams):
|
|
3
|
+
export declare function mapV2FooterWidgetLaunchParams(params: V2FooterWidgetLaunchParams): FooterWidgetLaunchParams;
|
|
4
4
|
export declare function mapV2WinWidgetLaunchParams(params: V2WinWidgetLaunchParams): WidgetLaunchParams<WinWidgetBaseConfig & {
|
|
5
5
|
animation?: 'wheel' | 'airplane';
|
|
6
6
|
}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export function mapV2FooterWidgetLaunchParams(params) {
|
|
2
2
|
return {
|
|
3
3
|
data: params.data,
|
|
4
|
-
|
|
4
|
+
onLoad: params.onLoad,
|
|
5
|
+
config: Object.assign(Object.assign(Object.assign(Object.assign({}, (params.container !== undefined
|
|
5
6
|
? { container: params.container }
|
|
6
|
-
: {})), (params.position !== undefined ? { position: params.position } : {})), (params.maxWidth !== undefined ? { maxWidth: params.maxWidth } : {})),
|
|
7
|
+
: {})), (params.position !== undefined ? { position: params.position } : {})), (params.maxWidth !== undefined ? { maxWidth: params.maxWidth } : {})), (params.height !== undefined ? { height: params.height } : {})),
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
10
|
export function mapV2WinWidgetLaunchParams(params) {
|
|
@@ -6,7 +6,9 @@ export interface V2FooterWidgetLaunchParams {
|
|
|
6
6
|
mode?: V2Mode;
|
|
7
7
|
position?: FooterWidgetBaseConfig['position'];
|
|
8
8
|
maxWidth?: string;
|
|
9
|
+
height?: string;
|
|
9
10
|
container?: string;
|
|
11
|
+
onLoad?: () => void;
|
|
10
12
|
}
|
|
11
13
|
export interface V2WinWidgetLaunchParams {
|
|
12
14
|
data: unknown;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { BaseWidget } from './BaseWidget';
|
|
2
|
-
import { FooterWidgetBaseConfig,
|
|
2
|
+
import { FooterWidgetBaseConfig, FooterWidgetLaunchParams } from './types';
|
|
3
3
|
export declare abstract class FooterWidgetBase<TConfig extends FooterWidgetBaseConfig, TEvents> extends BaseWidget<TConfig, TEvents> {
|
|
4
4
|
protected abstract readonly route: string;
|
|
5
|
-
protected abstract readonly height: string;
|
|
6
5
|
protected container: string;
|
|
7
6
|
protected position: "top" | "bottom";
|
|
8
7
|
protected maxWidth: string;
|
|
8
|
+
protected height: string;
|
|
9
|
+
private onLoadHandler?;
|
|
10
|
+
private onLoadCalled;
|
|
9
11
|
protected abstract sendInitialData(): void;
|
|
10
12
|
protected abstract sendDataUpdate(partialData: object): void;
|
|
11
|
-
launch(params:
|
|
13
|
+
launch(params: FooterWidgetLaunchParams<TConfig>): void;
|
|
12
14
|
updateData(partialData: object): void;
|
|
13
15
|
destroy(): void;
|
|
14
16
|
protected styleIframe(iframe: HTMLIFrameElement): HTMLIFrameElement;
|
|
15
17
|
protected expandIframe(): void;
|
|
16
18
|
protected collapseIframe(): void;
|
|
17
19
|
private setIframeHeight;
|
|
20
|
+
protected onChildAppLoaded(): void;
|
|
18
21
|
}
|
|
@@ -4,6 +4,7 @@ const defaults = {
|
|
|
4
4
|
container: '',
|
|
5
5
|
position: 'bottom',
|
|
6
6
|
maxWidth: '1300px',
|
|
7
|
+
height: '50px',
|
|
7
8
|
};
|
|
8
9
|
export class FooterWidgetBase extends BaseWidget {
|
|
9
10
|
constructor() {
|
|
@@ -11,18 +12,23 @@ export class FooterWidgetBase extends BaseWidget {
|
|
|
11
12
|
this.container = defaults.container;
|
|
12
13
|
this.position = defaults.position;
|
|
13
14
|
this.maxWidth = defaults.maxWidth;
|
|
15
|
+
this.height = defaults.height;
|
|
16
|
+
this.onLoadCalled = false;
|
|
14
17
|
}
|
|
15
18
|
launch(params) {
|
|
16
|
-
var _a, _b, _c, _d;
|
|
19
|
+
var _a, _b, _c, _d, _e;
|
|
17
20
|
if (this.isLaunched()) {
|
|
18
21
|
console.warn('Footer widget is already launched');
|
|
19
22
|
return;
|
|
20
23
|
}
|
|
21
24
|
this.config = (_a = params.config) !== null && _a !== void 0 ? _a : {};
|
|
22
25
|
this.data = params.data;
|
|
26
|
+
this.onLoadHandler = params.onLoad;
|
|
27
|
+
this.onLoadCalled = false;
|
|
23
28
|
this.container = (_b = this.config.container) !== null && _b !== void 0 ? _b : defaults.container;
|
|
24
29
|
this.position = (_c = this.config.position) !== null && _c !== void 0 ? _c : defaults.position;
|
|
25
30
|
this.maxWidth = (_d = this.config.maxWidth) !== null && _d !== void 0 ? _d : defaults.maxWidth;
|
|
31
|
+
this.height = (_e = this.config.height) !== null && _e !== void 0 ? _e : defaults.height;
|
|
26
32
|
this.iframe = this.createIframe();
|
|
27
33
|
this.iframe = this.styleIframe(this.iframe);
|
|
28
34
|
this.iframe.src = `${this.childAppOrigin}${this.route}`;
|
|
@@ -36,9 +42,12 @@ export class FooterWidgetBase extends BaseWidget {
|
|
|
36
42
|
this.sendDataUpdate(partialData);
|
|
37
43
|
}
|
|
38
44
|
destroy() {
|
|
45
|
+
this.onLoadHandler = undefined;
|
|
46
|
+
this.onLoadCalled = false;
|
|
39
47
|
this.container = defaults.container;
|
|
40
48
|
this.position = defaults.position;
|
|
41
49
|
this.maxWidth = defaults.maxWidth;
|
|
50
|
+
this.height = defaults.height;
|
|
42
51
|
this.stopListening();
|
|
43
52
|
this.removeIframe();
|
|
44
53
|
}
|
|
@@ -68,4 +77,11 @@ export class FooterWidgetBase extends BaseWidget {
|
|
|
68
77
|
this.iframe.style.height = height;
|
|
69
78
|
}
|
|
70
79
|
}
|
|
80
|
+
onChildAppLoaded() {
|
|
81
|
+
var _a;
|
|
82
|
+
if (this.onLoadCalled)
|
|
83
|
+
return;
|
|
84
|
+
this.onLoadCalled = true;
|
|
85
|
+
(_a = this.onLoadHandler) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
86
|
+
}
|
|
71
87
|
}
|
|
File without changes
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { validateNonEmptyObject } from '../shared/validation';
|
|
3
|
+
// import { BaseWidget } from './BaseWidget';
|
|
4
|
+
// import { LobbyWidgetBaseConfig, LobbyWidgetLaunchParams } from './types';
|
|
5
|
+
// const LOBBY_IFRAME_ATTR = 'data-splash-lobby-widget';
|
|
6
|
+
// const defaults = {
|
|
7
|
+
// container: '',
|
|
8
|
+
// showHero: false,
|
|
9
|
+
// };
|
|
10
|
+
// export abstract class LobbyWidgetBase<
|
|
11
|
+
// TConfig extends LobbyWidgetBaseConfig,
|
|
12
|
+
// TEvents,
|
|
13
|
+
// > extends BaseWidget<TConfig, TEvents> {
|
|
14
|
+
// protected abstract readonly route: string;
|
|
15
|
+
// protected container = defaults.container;
|
|
16
|
+
// protected showHero = defaults.showHero;
|
|
17
|
+
// protected abstract sendInitialData(): void;
|
|
18
|
+
// protected abstract sendDataUpdate(partialData: object): void;
|
|
19
|
+
// public launch(params: LobbyWidgetLaunchParams<TConfig>): this {
|
|
20
|
+
// if (this.isLaunched()) {
|
|
21
|
+
// console.warn('Lobby widget is already launched');
|
|
22
|
+
// return this;
|
|
23
|
+
// }
|
|
24
|
+
// this.config = params.config ?? ({} as TConfig);
|
|
25
|
+
// this.data = params.data;
|
|
26
|
+
// this.container = this.config.container ?? defaults.container;
|
|
27
|
+
// this.showHero = this.config.showHero ?? defaults.showHero;
|
|
28
|
+
// if (!this.container) {
|
|
29
|
+
// console.error('Lobby widget: config.container is required.');
|
|
30
|
+
// return this;
|
|
31
|
+
// }
|
|
32
|
+
// const targetContainer = document.querySelector(this.container);
|
|
33
|
+
// if (!targetContainer) {
|
|
34
|
+
// console.error(`Lobby widget: container "${this.container}" not found`);
|
|
35
|
+
// return this;
|
|
36
|
+
// }
|
|
37
|
+
// if (targetContainer.querySelector(`iframe[${LOBBY_IFRAME_ATTR}]`)) {
|
|
38
|
+
// console.error(
|
|
39
|
+
// `Lobby widget: container "${this.container}" already has a lobby widget. Use a separate container per widget.`,
|
|
40
|
+
// );
|
|
41
|
+
// return this;
|
|
42
|
+
// }
|
|
43
|
+
// this.iframe = this.createIframe();
|
|
44
|
+
// this.iframe = this.styleIframe(this.iframe);
|
|
45
|
+
// this.iframe.setAttribute(LOBBY_IFRAME_ATTR, '');
|
|
46
|
+
// this.iframe.src = `${this.childAppOrigin}${this.route}`;
|
|
47
|
+
// this.iframe.style.position = 'relative';
|
|
48
|
+
// targetContainer.appendChild(this.iframe);
|
|
49
|
+
// this.setLaunched(true);
|
|
50
|
+
// this.startListening();
|
|
51
|
+
// return this;
|
|
52
|
+
// }
|
|
53
|
+
// public updateData(partialData: object): void {
|
|
54
|
+
// if (!validateNonEmptyObject(partialData, 'lobbyWidget.updateData')) return;
|
|
55
|
+
// this.sendDataUpdate(partialData);
|
|
56
|
+
// }
|
|
57
|
+
// public destroy(): void {
|
|
58
|
+
// this.container = defaults.container;
|
|
59
|
+
// this.showHero = defaults.showHero;
|
|
60
|
+
// this.stopListening();
|
|
61
|
+
// this.removeIframe();
|
|
62
|
+
// }
|
|
63
|
+
// protected styleIframe(iframe: HTMLIFrameElement): HTMLIFrameElement {
|
|
64
|
+
// iframe.style.display = 'block';
|
|
65
|
+
// iframe.style.width = '100%';
|
|
66
|
+
// iframe.style.border = 'none';
|
|
67
|
+
// iframe.style.backgroundColor = 'transparent';
|
|
68
|
+
// iframe.style.zIndex = '1';
|
|
69
|
+
// return iframe;
|
|
70
|
+
// }
|
|
71
|
+
// }
|
package/dist/core/types.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ export interface WidgetLaunchParams<TConfig> {
|
|
|
2
2
|
config?: TConfig;
|
|
3
3
|
data: unknown;
|
|
4
4
|
}
|
|
5
|
+
export interface FooterWidgetLaunchParams<TConfig extends FooterWidgetBaseConfig = FooterWidgetBaseConfig> extends WidgetLaunchParams<TConfig> {
|
|
6
|
+
onLoad?: () => void;
|
|
7
|
+
}
|
|
5
8
|
export interface FooterWidgetBaseConfig {
|
|
6
9
|
container?: string;
|
|
7
10
|
position?: 'top' | 'bottom';
|
|
8
11
|
maxWidth?: string;
|
|
12
|
+
height?: string;
|
|
9
13
|
}
|
|
10
14
|
export interface WinWidgetBaseConfig {
|
|
11
15
|
container?: string;
|