@splash-tech/jackpot-sdk 3.1.5 → 3.1.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.
@@ -2,14 +2,12 @@ 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(Object.assign(Object.assign(Object.assign(Object.assign({}, (params.container !== undefined
5
+ config: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (params.container !== undefined
6
6
  ? { container: params.container }
7
7
  : {})), (params.position !== undefined ? { position: params.position } : {})), (params.maxWidth !== undefined ? { maxWidth: params.maxWidth } : {})), (params.height !== undefined ? { height: params.height } : {})), (params.showLevelIcons !== undefined
8
8
  ? { showLevelIcons: params.showLevelIcons }
9
9
  : {})), (params.showOptInButton !== undefined
10
10
  ? { showOptInButton: params.showOptInButton }
11
- : {})), (params.multiplier !== undefined
12
- ? { multiplier: params.multiplier }
13
11
  : {})), (params.popupTopOffset !== undefined
14
12
  ? { popupTopOffset: params.popupTopOffset }
15
13
  : {})),
@@ -10,7 +10,6 @@ export interface V2FooterWidgetLaunchParams {
10
10
  height?: string;
11
11
  showLevelIcons?: boolean;
12
12
  showOptInButton?: boolean;
13
- multiplier?: boolean;
14
13
  popupTopOffset?: number;
15
14
  container?: string;
16
15
  onLoad?: () => void;
@@ -8,7 +8,6 @@ export declare abstract class FooterWidgetBase<TConfig extends FooterWidgetBaseC
8
8
  protected height: string;
9
9
  protected showLevelIcons: boolean;
10
10
  protected showOptInButton: boolean;
11
- protected multiplier: boolean;
12
11
  private onLoadHandler?;
13
12
  private onLoadCalled;
14
13
  private popupTopOffset;
@@ -7,7 +7,6 @@ const defaults = {
7
7
  height: '50px',
8
8
  showLevelIcons: true,
9
9
  showOptInButton: true,
10
- multiplier: false,
11
10
  popupTopOffset: 0,
12
11
  };
13
12
  export class FooterWidgetBase extends BaseWidget {
@@ -19,7 +18,6 @@ export class FooterWidgetBase extends BaseWidget {
19
18
  this.height = defaults.height;
20
19
  this.showLevelIcons = defaults.showLevelIcons;
21
20
  this.showOptInButton = defaults.showOptInButton;
22
- this.multiplier = defaults.multiplier;
23
21
  this.onLoadCalled = false;
24
22
  this.popupTopOffset = defaults.popupTopOffset;
25
23
  this.popupExpanded = false;
@@ -34,7 +32,7 @@ export class FooterWidgetBase extends BaseWidget {
34
32
  };
35
33
  }
36
34
  launch(params) {
37
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
35
+ var _a, _b, _c, _d, _e, _f, _g, _h;
38
36
  if (this.isLaunched()) {
39
37
  console.warn('Footer widget is already launched');
40
38
  return;
@@ -49,12 +47,11 @@ export class FooterWidgetBase extends BaseWidget {
49
47
  this.height = (_e = input.height) !== null && _e !== void 0 ? _e : defaults.height;
50
48
  this.showLevelIcons = (_f = input.showLevelIcons) !== null && _f !== void 0 ? _f : defaults.showLevelIcons;
51
49
  this.showOptInButton = (_g = input.showOptInButton) !== null && _g !== void 0 ? _g : defaults.showOptInButton;
52
- this.multiplier = (_h = input.multiplier) !== null && _h !== void 0 ? _h : defaults.multiplier;
53
- const popupTopOffset = (_j = input.popupTopOffset) !== null && _j !== void 0 ? _j : defaults.popupTopOffset;
50
+ const popupTopOffset = (_h = input.popupTopOffset) !== null && _h !== void 0 ? _h : defaults.popupTopOffset;
54
51
  this.popupTopOffset = Number.isFinite(popupTopOffset)
55
52
  ? Math.max(0, popupTopOffset)
56
53
  : defaults.popupTopOffset;
57
- this.config = Object.assign(Object.assign({}, input), { container: this.container, position: this.position, maxWidth: this.maxWidth, height: this.height, showLevelIcons: this.showLevelIcons, showOptInButton: this.showOptInButton, multiplier: this.multiplier, popupTopOffset: this.popupTopOffset });
54
+ this.config = Object.assign(Object.assign({}, input), { container: this.container, position: this.position, maxWidth: this.maxWidth, height: this.height, showLevelIcons: this.showLevelIcons, showOptInButton: this.showOptInButton, popupTopOffset: this.popupTopOffset });
58
55
  this.iframe = this.createIframe();
59
56
  this.iframe = this.styleIframe(this.iframe);
60
57
  this.iframe.src = `${this.childAppOrigin}${this.route}`;
@@ -77,7 +74,6 @@ export class FooterWidgetBase extends BaseWidget {
77
74
  this.height = defaults.height;
78
75
  this.showLevelIcons = defaults.showLevelIcons;
79
76
  this.showOptInButton = defaults.showOptInButton;
80
- this.multiplier = defaults.multiplier;
81
77
  this.stopListening();
82
78
  this.removeIframe();
83
79
  }
@@ -12,7 +12,6 @@ export interface FooterWidgetBaseConfig {
12
12
  height?: string;
13
13
  showLevelIcons?: boolean;
14
14
  showOptInButton?: boolean;
15
- multiplier?: boolean;
16
15
  popupTopOffset?: number;
17
16
  }
18
17
  export interface WinWidgetBaseConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splash-tech/jackpot-sdk",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "SDK for managing jackpot widgets in iframes",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",