@everymatrix/casino-games-category-section 0.0.266 → 0.0.270

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-games-category-section",
3
- "version": "0.0.266",
3
+ "version": "0.0.270",
4
4
  "main": "dist/casino-games-category-section.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "6b21b1bd51d22d238761763635b28c6f154513a8"
39
+ "gitHead": "bcb45adcfc2491881a3333ea2b75a5724d94c34a"
40
40
  }
@@ -325,15 +325,8 @@
325
325
  break;
326
326
 
327
327
  case 'FavoriteUpdate':
328
- searched = false;
329
328
  mostPlayedScreen = false;
330
329
  lobbyView = true;
331
-
332
- // fallback for when the categoryData is undefined (fix for on reload issue)
333
- if(!categoryData) {
334
- window.postMessage({ type: `CategoryData_${categoryid}`, categoryId: {categoryid}, visiblegames }, window.location.href);
335
- }
336
-
337
330
  shownCategoryData = categoryData.games.items;
338
331
  shownCategoryData.forEach((item:any) => {
339
332
  item.isFavorite = checkFavorite(item.id);
@@ -366,7 +359,6 @@
366
359
  }
367
360
  });
368
361
  }
369
-
370
362
  favoriteGamesData.items = platformFavorite(favGameArray, favoriteGamesData.items);
371
363
  favoriteGamesData.name = "Favorites";
372
364
  showFavGamesCategory = true;
@@ -639,8 +631,10 @@
639
631
  gamefunmode={gameprops.gameModel.hasFunMode}
640
632
  gamefavorite={gameprops.gameModel.isFavorite}
641
633
  showfavoredcategory={showFavGamesCategory}
634
+ connectlive={intersectingIndexes[gameprops.id] == 1 ? 'connect' : 'disconnect'}
635
+ visibilityconnect={visibilityconnect}
642
636
  {currency}
643
- livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.href : ''}
637
+ livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.launchUrl : ''}
644
638
  {clientstyling}
645
639
  {clientstylingurl}
646
640
  {endpoint}
@@ -648,7 +642,6 @@
648
642
  ></casino-game-thumbnail>
649
643
  {/if}
650
644
  {:else if gameprops.gameModel.platform.includes("PC")}
651
- <!-- <p style="color: var(--emfe-w-color-white, #FFFFFF)">{gameprops.gameModel.isFavorite}</p> -->
652
645
  <casino-game-thumbnail
653
646
  class="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
654
647
  part="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
@@ -666,8 +659,10 @@
666
659
  gamefunmode={gameprops.gameModel.hasFunMode}
667
660
  gamefavorite={gameprops.gameModel.isFavorite}
668
661
  showfavoredcategory={showFavGamesCategory}
662
+ connectlive={intersectingIndexes[gameprops.id] == 1 ? 'connect' : 'disconnect'}
663
+ visibilityconnect={visibilityconnect}
669
664
  {currency}
670
- livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.href : ''}
665
+ livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.launchUrl : ''}
671
666
  {clientstyling}
672
667
  {clientstylingurl}
673
668
  {endpoint}