@everymatrix/casino-lobby 0.0.235 → 0.0.239

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/index.html CHANGED
@@ -15,6 +15,21 @@
15
15
  </style>
16
16
 
17
17
  <div class="webcomponent">
18
+ <!-- <casino-lobby
19
+ endpoint="https://jojobet-api.stage.norway.everymatrix.com/v1"
20
+ datasource="Jojobet-livecasino"
21
+ lang="en"
22
+ currency="TRY"
23
+ loginevent="OpenLoginRegisterModal"
24
+ registerevent="OpenLoginRegisterModal"
25
+ depositevent="OpenDepositModal"
26
+ favorites="true"
27
+ mostplayed="true"
28
+ mostplayedrounds="50"
29
+ containermaxwidth="1300"
30
+ haspanicbutton="true"
31
+ livecasino="true"
32
+ ></casino-lobby> -->
18
33
  <casino-lobby
19
34
  endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
20
35
  datasource="RNG"
@@ -29,25 +44,11 @@
29
44
  lobbyid="casino"
30
45
  clockformat="LTS"
31
46
  containermaxwidth="1300"
32
- haspanicbutton="true"
47
+ haspanicbutton="false"
33
48
  alternativesearch="true"
49
+ livecasino="false"
34
50
  ></casino-lobby>
35
- <!--<casino-lobby
36
- clientstylingurl="https://gist.githubusercontent.com/raulvasile/839f53316c98a4061441474bed11f552/raw/f20e6bb03e84273ae72d8939463ea4497c707471/gistfile1.css"
37
- session="802f65ea-04d2-4a13-b236-499ae23fb826"
38
- userid="3657535"
39
- session="77272d6b-a9b4-4b50-8bae-61b527add791"
40
- userid="3657535"
41
- endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
42
- datasource="RNG"
43
- lang="en"
44
- loginevent="OpenLoginRegisterModal"
45
- registerevent="OpenLoginRegisterModal"
46
- depositevent="OpenDepositModal"
47
- favorites="false"
48
- mostplayed="false"
49
- alternativesearch="false"
50
- ></casino-lobby>-->
51
+
51
52
  </div>
52
53
 
53
54
  </body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "0.0.235",
3
+ "version": "0.0.239",
4
4
  "main": "dist/casino-lobby.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": "61a6a3f31e48f5f6865ef5aafdaa2091436ca9d5"
39
+ "gitHead": "3514a454516ab9691e0154509b1a13d332315cc5"
40
40
  }
@@ -22,6 +22,7 @@
22
22
  export let clientstylingurl:string = '';
23
23
  export let clockformat:string = '';
24
24
  export let lobbyid:string = '';
25
+ export let currency:string = 'EUR';
25
26
 
26
27
  export let loginurl:string = '';
27
28
  export let registerurl:string = '';
@@ -43,6 +44,7 @@
43
44
 
44
45
  export let activecategory:string = 'LOBBY';
45
46
  export let actionevent:string = '';
47
+ export let livecasino:string = 'false';
46
48
 
47
49
  let endpointURL:string;
48
50
  let DS:string;
@@ -57,10 +59,11 @@
57
59
  let userAgent:string = window.navigator.userAgent;
58
60
  let isLoading:boolean = true;
59
61
 
60
- let headerPlaceholderSize:string = '0';
61
- let scrollReference:HTMLElement;
62
+ let headerPlaceholderSize:number = 0;
62
63
  let scrollTop:boolean = false;
63
64
  let customStylingContainer:HTMLElement;
65
+ let mostPlayed;
66
+ let fav;
64
67
 
65
68
  setupI18n({ withLocale: 'en', translations: {}});
66
69
 
@@ -71,10 +74,8 @@
71
74
  scrollTop = e.data.scrollTop;
72
75
  // check if the category has been changed and the scroll top
73
76
  if (scrollTop) {
74
- if (!headerPlaceholderSize) {
75
- scrollReference.scrollIntoView();
76
- } else {
77
- window.scrollTo({ top: parseInt(headerPlaceholderSize, 10) });
77
+ if (headerPlaceholderSize) {
78
+ window.scrollTo({ top: headerPlaceholderSize });
78
79
  }
79
80
  }
80
81
  break;
@@ -122,11 +123,14 @@
122
123
 
123
124
  const initialSetup = ():void => {
124
125
  checkAttrs();
125
-
126
+ setLocale(lang);
126
127
  endpointURL = endpoint;
127
128
  DS = datasource;
128
129
  language = lang;
129
130
 
131
+ mostPlayed = mostplayed;
132
+ fav = favorites;
133
+
130
134
  hasErrors = false;
131
135
  isLoading = false;
132
136
  }
@@ -174,7 +178,7 @@
174
178
  onMount(() => {
175
179
  window.addEventListener('message', messageHandler, false);
176
180
 
177
- headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? desktopoffset : mobileoffset;
181
+ headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
178
182
 
179
183
  return () => {
180
184
  window.removeEventListener('message', messageHandler);
@@ -189,7 +193,7 @@
189
193
  $: clientstylingurl && setClientStylingURL();
190
194
  </script>
191
195
 
192
- <div bind:this={customStylingContainer} class={displayNone ? 'DisplayNone' : ''}>
196
+ <div bind:this={customStylingContainer} class={displayNone ? 'DisplayNone' : ''}>
193
197
  {#if hasErrors}
194
198
  <p style="color:var(--emfe-w-color-white, #FFFFFF)">{error}</p>
195
199
  {:else}
@@ -229,6 +233,7 @@
229
233
  {lobbyid}
230
234
  {containermaxwidth}
231
235
  {haspanicbutton}
236
+ {livecasino}
232
237
  ></casino-page>
233
238
  <casino-modal
234
239
  session={session}