@everymatrix/casino-engagement-suite-bar 1.56.0 → 1.56.3

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.
Files changed (26) hide show
  1. package/dist/casino-engagement-suite-bar/casino-engagement-suite-bar.esm.js +1 -1
  2. package/dist/casino-engagement-suite-bar/p-2ba163e5.js +2 -0
  3. package/dist/casino-engagement-suite-bar/p-35253536.entry.js +15 -0
  4. package/dist/cjs/casino-engagement-suite-bar.cjs.entry.js +22 -51
  5. package/dist/cjs/casino-engagement-suite-bar.cjs.js +2 -2
  6. package/dist/cjs/{index-74d721d6.js → index-d633c71c.js} +67 -202
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/casino-engagement-suite-bar/casino-engagement-suite-bar.js +21 -76
  10. package/dist/esm/casino-engagement-suite-bar.entry.js +22 -51
  11. package/dist/esm/casino-engagement-suite-bar.js +3 -3
  12. package/dist/esm/{index-466e12d6.js → index-c68286cc.js} +67 -202
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/casino-engagement-suite-bar/casino-engagement-suite-bar.d.ts +1 -1
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/casino-engagement-suite-bar/p-3ed6d677.entry.js +0 -1
  20. package/dist/casino-engagement-suite-bar/p-e3eeee5f.js +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5,48 +5,6 @@ import { initialLeaderboardState } from "../../models";
5
5
  import { translate } from "../../utils/locale.utils";
6
6
  export class CasinoEngagementSuiteBar {
7
7
  constructor() {
8
- /**
9
- * Highlight Challenge tile
10
- */
11
- this.highlightChallenge = false;
12
- /**
13
- * Client custom styling via string
14
- */
15
- this.clientStyling = '';
16
- /**
17
- * Client custom styling via url
18
- */
19
- this.clientStylingUrl = '';
20
- /**
21
- * Orientation of the widget
22
- */
23
- this.orientation = 'Landscape';
24
- /**
25
- * User's device type
26
- */
27
- this.device = 'Mobile';
28
- /**
29
- * Show challenge label
30
- */
31
- this.isChallengeLabel = false;
32
- /**
33
- * Show forfeited challenge label
34
- */
35
- this.isForfeitedChallengeLabel = false;
36
- /**
37
- * Show spins forfeited label
38
- */
39
- this.isSpinForfeitedLabel = false;
40
- /**
41
- * Language of the widget
42
- */
43
- this.language = 'en';
44
- this.jackpots = [];
45
- // todo: hardcoded (waiting for GLC integration)
46
- this.remainingLuckywheels = '1';
47
- this.limitStylingAppends = false;
48
- this.activeJackpot = '';
49
- this.leaderboardState = initialLeaderboardState;
50
8
  this.handleTileClick = (ev) => {
51
9
  const application = ev.target.getAttribute('data-app');
52
10
  window.postMessage({ type: `Bar${application}Click` });
@@ -73,6 +31,24 @@ export class CasinoEngagementSuiteBar {
73
31
  console.log('Error ', err);
74
32
  });
75
33
  };
34
+ this.activeWidget = undefined;
35
+ this.challengePercent = undefined;
36
+ this.highlightChallenge = false;
37
+ this.clientStyling = '';
38
+ this.clientStylingUrl = '';
39
+ this.orientation = 'Landscape';
40
+ this.device = 'Mobile';
41
+ this.isChallengeLabel = false;
42
+ this.isForfeitedChallengeLabel = false;
43
+ this.isSpinForfeitedLabel = false;
44
+ this.language = 'en';
45
+ this.jackpots = [];
46
+ this.remainingFreeSpins = undefined;
47
+ this.remainingLuckywheels = undefined;
48
+ this.leaderboards = undefined;
49
+ this.limitStylingAppends = false;
50
+ this.activeJackpot = '';
51
+ this.leaderboardState = initialLeaderboardState;
76
52
  }
77
53
  handleEvent(e) {
78
54
  const _a = e === null || e === void 0 ? void 0 : e.data, { type } = _a, rest = __rest(_a, ["type"]);
@@ -143,7 +119,7 @@ export class CasinoEngagementSuiteBar {
143
119
  : h("div", { class: "EngagementSuiteContainer" }, h("div", { class: "Jackpots" }, !!this.jackpots.length && this.getJackpotsTemplate()), h("div", { class: "Rewards" }, this.leaderboards && this.getLeaderboardsTile(), this.remainingLuckywheels && this.getLuckyWheelTile(), this.challengePercent && this.getChallengeTile(), this.remainingFreeSpins && this.getFreeSpinsTile()));
144
120
  }
145
121
  render() {
146
- return h("div", { key: 'd932ee7e636f06b0c50841a4737cb6572c1500aa', class: `CasinoEngagementSuiteBar ${this.orientation} ${this.device}`, ref: (el) => (this.engagementSuiteBar = el) }, this.getTilesTemplate());
122
+ return h("div", { key: '9fa80b96364085609f814668692eea4a3842815f', class: `CasinoEngagementSuiteBar ${this.orientation} ${this.device}`, ref: (el) => (this.engagementSuiteBar = el) }, this.getTilesTemplate());
147
123
  }
148
124
  static get is() { return "casino-engagement-suite-bar"; }
149
125
  static get encapsulation() { return "shadow"; }
@@ -173,8 +149,6 @@ export class CasinoEngagementSuiteBar {
173
149
  "tags": [],
174
150
  "text": "Highlight active widget"
175
151
  },
176
- "getter": false,
177
- "setter": false,
178
152
  "attribute": "active-widget",
179
153
  "reflect": true
180
154
  },
@@ -192,8 +166,6 @@ export class CasinoEngagementSuiteBar {
192
166
  "tags": [],
193
167
  "text": "The Challenge Percent"
194
168
  },
195
- "getter": false,
196
- "setter": false,
197
169
  "attribute": "challenge-percent",
198
170
  "reflect": false
199
171
  },
@@ -211,8 +183,6 @@ export class CasinoEngagementSuiteBar {
211
183
  "tags": [],
212
184
  "text": "Highlight Challenge tile"
213
185
  },
214
- "getter": false,
215
- "setter": false,
216
186
  "attribute": "highlight-challenge",
217
187
  "reflect": false,
218
188
  "defaultValue": "false"
@@ -231,8 +201,6 @@ export class CasinoEngagementSuiteBar {
231
201
  "tags": [],
232
202
  "text": "Client custom styling via string"
233
203
  },
234
- "getter": false,
235
- "setter": false,
236
204
  "attribute": "client-styling",
237
205
  "reflect": true,
238
206
  "defaultValue": "''"
@@ -251,8 +219,6 @@ export class CasinoEngagementSuiteBar {
251
219
  "tags": [],
252
220
  "text": "Client custom styling via url"
253
221
  },
254
- "getter": false,
255
- "setter": false,
256
222
  "attribute": "client-styling-url",
257
223
  "reflect": true,
258
224
  "defaultValue": "''"
@@ -271,8 +237,6 @@ export class CasinoEngagementSuiteBar {
271
237
  "tags": [],
272
238
  "text": "Orientation of the widget"
273
239
  },
274
- "getter": false,
275
- "setter": false,
276
240
  "attribute": "orientation",
277
241
  "reflect": false,
278
242
  "defaultValue": "'Landscape' as 'Landscape' | 'Portrait'"
@@ -291,8 +255,6 @@ export class CasinoEngagementSuiteBar {
291
255
  "tags": [],
292
256
  "text": "User's device type"
293
257
  },
294
- "getter": false,
295
- "setter": false,
296
258
  "attribute": "device",
297
259
  "reflect": false,
298
260
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -311,8 +273,6 @@ export class CasinoEngagementSuiteBar {
311
273
  "tags": [],
312
274
  "text": "Show challenge label"
313
275
  },
314
- "getter": false,
315
- "setter": false,
316
276
  "attribute": "is-challenge-label",
317
277
  "reflect": false,
318
278
  "defaultValue": "false"
@@ -331,8 +291,6 @@ export class CasinoEngagementSuiteBar {
331
291
  "tags": [],
332
292
  "text": "Show forfeited challenge label"
333
293
  },
334
- "getter": false,
335
- "setter": false,
336
294
  "attribute": "is-forfeited-challenge-label",
337
295
  "reflect": false,
338
296
  "defaultValue": "false"
@@ -351,8 +309,6 @@ export class CasinoEngagementSuiteBar {
351
309
  "tags": [],
352
310
  "text": "Show spins forfeited label"
353
311
  },
354
- "getter": false,
355
- "setter": false,
356
312
  "attribute": "is-spin-forfeited-label",
357
313
  "reflect": false,
358
314
  "defaultValue": "false"
@@ -371,8 +327,6 @@ export class CasinoEngagementSuiteBar {
371
327
  "tags": [],
372
328
  "text": "Language of the widget"
373
329
  },
374
- "getter": false,
375
- "setter": false,
376
330
  "attribute": "language",
377
331
  "reflect": false,
378
332
  "defaultValue": "'en'"
@@ -397,8 +351,6 @@ export class CasinoEngagementSuiteBar {
397
351
  "tags": [],
398
352
  "text": ""
399
353
  },
400
- "getter": false,
401
- "setter": false,
402
354
  "defaultValue": "[] as Array<Jackpot>"
403
355
  },
404
356
  "remainingFreeSpins": {
@@ -415,8 +367,6 @@ export class CasinoEngagementSuiteBar {
415
367
  "tags": [],
416
368
  "text": ""
417
369
  },
418
- "getter": false,
419
- "setter": false,
420
370
  "attribute": "remaining-free-spins",
421
371
  "reflect": false
422
372
  },
@@ -434,11 +384,8 @@ export class CasinoEngagementSuiteBar {
434
384
  "tags": [],
435
385
  "text": ""
436
386
  },
437
- "getter": false,
438
- "setter": false,
439
387
  "attribute": "remaining-luckywheels",
440
- "reflect": false,
441
- "defaultValue": "'1'"
388
+ "reflect": false
442
389
  },
443
390
  "leaderboards": {
444
391
  "type": "unknown",
@@ -463,9 +410,7 @@ export class CasinoEngagementSuiteBar {
463
410
  "docs": {
464
411
  "tags": [],
465
412
  "text": ""
466
- },
467
- "getter": false,
468
- "setter": false
413
+ }
469
414
  }
470
415
  };
471
416
  }
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-466e12d6.js';
1
+ import { r as registerInstance, h } from './index-c68286cc.js';
2
2
 
3
- /******************************************************************************
3
+ /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
5
5
 
6
6
  Permission to use, copy, modify, and/or distribute this software for any
@@ -25,12 +25,7 @@ function __rest(s, e) {
25
25
  t[p[i]] = s[p[i]];
26
26
  }
27
27
  return t;
28
- }
29
-
30
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31
- var e = new Error(message);
32
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33
- };
28
+ }
34
29
 
35
30
  function formatBalance(amount, currency, maxAmount = 99999999) {
36
31
  amount = Math.min(amount, maxAmount);
@@ -62,48 +57,6 @@ const CasinoEngagementSuiteBarStyle0 = casinoEngagementSuiteBarCss;
62
57
  const CasinoEngagementSuiteBar = class {
63
58
  constructor(hostRef) {
64
59
  registerInstance(this, hostRef);
65
- /**
66
- * Highlight Challenge tile
67
- */
68
- this.highlightChallenge = false;
69
- /**
70
- * Client custom styling via string
71
- */
72
- this.clientStyling = '';
73
- /**
74
- * Client custom styling via url
75
- */
76
- this.clientStylingUrl = '';
77
- /**
78
- * Orientation of the widget
79
- */
80
- this.orientation = 'Landscape';
81
- /**
82
- * User's device type
83
- */
84
- this.device = 'Mobile';
85
- /**
86
- * Show challenge label
87
- */
88
- this.isChallengeLabel = false;
89
- /**
90
- * Show forfeited challenge label
91
- */
92
- this.isForfeitedChallengeLabel = false;
93
- /**
94
- * Show spins forfeited label
95
- */
96
- this.isSpinForfeitedLabel = false;
97
- /**
98
- * Language of the widget
99
- */
100
- this.language = 'en';
101
- this.jackpots = [];
102
- // todo: hardcoded (waiting for GLC integration)
103
- this.remainingLuckywheels = '1';
104
- this.limitStylingAppends = false;
105
- this.activeJackpot = '';
106
- this.leaderboardState = initialLeaderboardState;
107
60
  this.handleTileClick = (ev) => {
108
61
  const application = ev.target.getAttribute('data-app');
109
62
  window.postMessage({ type: `Bar${application}Click` });
@@ -130,6 +83,24 @@ const CasinoEngagementSuiteBar = class {
130
83
  console.log('Error ', err);
131
84
  });
132
85
  };
86
+ this.activeWidget = undefined;
87
+ this.challengePercent = undefined;
88
+ this.highlightChallenge = false;
89
+ this.clientStyling = '';
90
+ this.clientStylingUrl = '';
91
+ this.orientation = 'Landscape';
92
+ this.device = 'Mobile';
93
+ this.isChallengeLabel = false;
94
+ this.isForfeitedChallengeLabel = false;
95
+ this.isSpinForfeitedLabel = false;
96
+ this.language = 'en';
97
+ this.jackpots = [];
98
+ this.remainingFreeSpins = undefined;
99
+ this.remainingLuckywheels = undefined;
100
+ this.leaderboards = undefined;
101
+ this.limitStylingAppends = false;
102
+ this.activeJackpot = '';
103
+ this.leaderboardState = initialLeaderboardState;
133
104
  }
134
105
  handleEvent(e) {
135
106
  const _a = e === null || e === void 0 ? void 0 : e.data, { type } = _a, rest = __rest(_a, ["type"]);
@@ -199,7 +170,7 @@ const CasinoEngagementSuiteBar = class {
199
170
  : h("div", { class: "EngagementSuiteContainer" }, h("div", { class: "Jackpots" }, !!this.jackpots.length && this.getJackpotsTemplate()), h("div", { class: "Rewards" }, this.leaderboards && this.getLeaderboardsTile(), this.remainingLuckywheels && this.getLuckyWheelTile(), this.challengePercent && this.getChallengeTile(), this.remainingFreeSpins && this.getFreeSpinsTile()));
200
171
  }
201
172
  render() {
202
- return h("div", { key: 'd932ee7e636f06b0c50841a4737cb6572c1500aa', class: `CasinoEngagementSuiteBar ${this.orientation} ${this.device}`, ref: (el) => (this.engagementSuiteBar = el) }, this.getTilesTemplate());
173
+ return h("div", { key: '9fa80b96364085609f814668692eea4a3842815f', class: `CasinoEngagementSuiteBar ${this.orientation} ${this.device}`, ref: (el) => (this.engagementSuiteBar = el) }, this.getTilesTemplate());
203
174
  }
204
175
  };
205
176
  CasinoEngagementSuiteBar.style = CasinoEngagementSuiteBarStyle0;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-466e12d6.js';
2
- export { s as setNonce } from './index-466e12d6.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c68286cc.js';
2
+ export { s as setNonce } from './index-c68286cc.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;