@everymatrix/casino-lobby 0.0.420 → 0.33.0

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/documentation.md CHANGED
@@ -36,6 +36,7 @@ These components can also be used on their own, and they still can communicate t
36
36
 
37
37
  ### A business driven widget
38
38
  This widget encapsulates knowledge and features of a world leading casino product which we developed and improved continuously for several years now. This means that every feature is designed in order to make the casino widget profitable, competitive and attractive both for our integrators and their clients.
39
+
39
40
  The casino lobby widget has the core functionality and features in place with even more to come and to improve upon. It is our commitment that we will treat this product with utmost importance and priority and that we will continuously add and develop new versions with state-of-the-art market features.
40
41
  ---
41
42
 
@@ -156,15 +157,10 @@ Full example (`not logged in user`):
156
157
  |registerevent|no|The `postMessage` event that should be triggered when the `Register` button is clicked|
157
158
  |depositurl|no|The URL where the user should be redirected when the `Deposit` button is clicked|
158
159
  |depositevent|no|The `postMessage` event that should be triggered when the `Deposit` button is clicked|
159
- |favorites|no|Provides the option to show/hide the `Favorites` tab in categories slider. Default: true|
160
- |mostplayed|no|Provides the option to show/hide the `Most Played Games` tab in categories slider. Default: 'true'|
161
- |alternativesearch|no|Provides the option to show the searchbar, in mobile view, at the top of the screen. Default: 'false'|
160
+ |favorites|no|Option to show/hide the `Favorites` tab in categories slider. Default: true|
161
+ |mostplayed|no|Option to show/hide the `Most Played Games` tab in categories slider. Default: true|
162
+ |alternativesearch|no|Option to show the searchbar, in mobile view, at the top of the screen. Default: false|
162
163
  |clockformat|no|The clock format for the game page - more details here - https://momentjs.com/docs/#/displaying/format/. Default: 'LTS'|
163
- |visiblegames|no|Provides the option to set the number of games that is to be displayed on `Casino Lobby` for each category. The default is set to 10 games.
164
- |integratedgameframedesktop|no|Changes the way that the game iframe opens on desktop - instead of opening the iframe in a new tab, it opens it inside the the widget, thus giving the client control over the styling and giving him the option to display banners alongside the game. Default: 'false'|
165
- |integratedgameframemobile|no|Changes the way that the game iframe opens on mobile devices - instead of opening the iframe in a new tab, it opens it inside the the widget, thus giving the client control over the styling and giving him the option to display banners alongside the game. Default: 'false'|
166
- |gamebanneractive|no|When opening the game page, if the `gamebanneractive` is set to 'true', below the game a banner will be shown. This feature requires `integratedgameframedesktop` or `integratedgameframemobile` to be set to 'true'. Default: 'false'|
167
- |gamepagemodalurl|no|When opening the game page on mobile, if the `gamepagemodalurl` is set to 'true', the game page will open in a modal with a unique id, adding to the URL the game id. Make sure that the `gamemodal` is also set to 'true', else it will not open the game modal on mobile. Default: 'false'|
168
164
 
169
165
  ## Releases
170
166
 
package/index.html CHANGED
@@ -15,40 +15,43 @@
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"
21
36
  playforfun="true"
22
- lang="en"
37
+ lang="de"
38
+ session="42419b32-e96b-4b2b-8999-d328fd5ec28f"
39
+ userid="3657535"
23
40
  loginevent="OpenLoginRegisterModal"
24
41
  registerevent="OpenLoginRegisterModal"
25
42
  depositevent="OpenDepositModal"
26
43
  favorites="true"
27
44
  activecategory="LOBBY"
28
45
  mostplayed="true"
29
- mostplayedrounds="1"
30
- lastplayed="true"
31
- lastplayedperiod="Today"
46
+ mostplayedrounds="50"
32
47
  lobbyid="casino"
33
48
  clockformat="LTS"
34
49
  containermaxwidth="1300"
35
- haspanicbutton="true"
50
+ haspanicbutton="false"
36
51
  alternativesearch="true"
37
52
  livecasino="false"
38
- playforfun="true"
39
- playrandomgame="true"
40
- userid="3920216"
41
- session="4aef9358-9e1e-430f-b0e5-d58f9da325ca"
42
- integratedgameframedesktop="true"
43
- integratedgameframemobile="true"
44
- showsubgroups="true"
45
- randombuttonicon='<svg width=35 height=35 part="RandomButtonSvg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">
46
- <style type="text/css">
47
- .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}
48
- </style>
49
- <path class="st0" d="M161,16.7c-2.7,0-5.5,0.5-8.1,1.6l-44.2,18.3C98.1,41,93,53.2,97.4,63.8l18.3,44.2 c4.4,10.6,16.6,15.7,27.2,11.3l44.2-18.3c10.6-4.4,15.7-16.6,11.3-27.2l-18.3-44.2C176.8,21.6,169.1,16.7,161,16.7L161,16.7z M161,25c4.9,0,9.4,2.9,11.4,7.8l18.3,44.2c2.7,6.5-0.3,13.7-6.8,16.3l-44.2,18.3c-6.5,2.7-13.7-0.3-16.3-6.8l-18.3-44.2 c-2.7-6.5,0.3-13.7,6.8-16.3L156.1,26C157.7,25.3,159.4,25,161,25L161,25z M127.1,54.2c-1.7,0-3.2,0.7-4.4,1.8 c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4 C130.3,54.8,128.7,54.2,127.1,54.2z M147.9,62.5c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C151.2,63.2,149.6,62.5,147.9,62.5z M168.8,70.8 c-1.7,0-3.2,0.7-4.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-3.2-1.8-4.4 C39.9,119.3,38.3,118.6,36.7,118.6z M67.5,131.4c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4s0.7,3.2,1.8,4.4 c1.2,1.2,2.8,1.8,4.4,1.8c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4s-0.7-3.2-1.8-4.4C70.7,132,69.1,131.4,67.5,131.4z M28.7,137.9c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8 c1.7,0,3.2-0.7,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C32,138.5,30.4,137.9,28.7,137.9z M59.5,150.6 c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4c0,1.7,0.7,3.2,1.8,4.4c1.2,1.2,2.8,1.8,4.4,1.8s3.2-0.7,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.4c0-1.7-0.7-3.2-1.8-4.4C62.8,151.3,61.2,150.6,59.5,150.6z"/>
50
- </svg>'
51
53
  ></casino-lobby>
54
+
52
55
  </div>
53
56
 
54
57
  </body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "0.0.420",
3
+ "version": "0.33.0",
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": "23697f5b0af1976be1da3e17d14dca4bce1ec98e"
39
+ "gitHead": "f4cfbfcaa4bc3a2ba40aa690b40399f8f3d50321"
40
40
  }
@@ -11,7 +11,6 @@
11
11
  import '@everymatrix/casino-game-page';
12
12
  import '@everymatrix/casino-filter-modal';
13
13
  import '@everymatrix/casino-filter-page';
14
- import '@everymatrix/casino-integrated-game-page';
15
14
 
16
15
  export let endpoint:string = '';
17
16
  export let datasource:string = '';
@@ -23,9 +22,8 @@
23
22
  export let clientstylingurl:string = '';
24
23
  export let clockformat:string = '';
25
24
  export let lobbyid:string = '';
26
- export let currency:string = '';
27
- export let filteredcategories:string = '';
28
-
25
+ export let currency:string = 'EUR';
26
+
29
27
  export let loginurl:string = '';
30
28
  export let registerurl:string = '';
31
29
  export let depositurl:string = '';
@@ -35,8 +33,6 @@
35
33
 
36
34
  export let mostplayed:string = '';
37
35
  export let mostplayedrounds:string = '';
38
- export let lastplayed:string = 'false';
39
- export let lastplayedperiod:string = 'Last30Days';
40
36
  export let favorites:string = '';
41
37
 
42
38
  export let desktopoffset:string = '0';
@@ -50,47 +46,11 @@
50
46
  export let actionevent:string = 'CategoryChange';
51
47
  export let livecasino:string = 'false';
52
48
  export let playforfun:string = 'true';
53
- export let gamemodal:string = 'true';
54
- export let playrandomgame:string = 'false';
55
- export let visiblegames:string = '10';
56
- export let integratedgameframedesktop:string = 'false';
57
- export let integratedgameframemobile:string = 'false';
58
- export let gamepagemodalurl:string = 'false';
59
- //Casino Winners
60
- export let enablecasinowinners:string = '';
61
- export let tabsorder:string = '';
62
- export let enableautoscroll:string = '';
63
- export let istopavailable:string = '';
64
- export let isrecentavailable:string = '';
65
- export let periodrecent:string = '';
66
- export let periodtop:string = '';
67
- export let numberusersrecent:string = '';
68
- export let numberuserstop:string = '';
69
- export let amountlimit:string = '';
70
- export let defaultcurrency:string = '';
71
- //Jackpot Banners
72
- export let enablejackpotbanner:string = '';
73
- export let caticon0:string = '';
74
- export let caticon1:string = '';
75
- export let caticon2:string = '';
76
- export let caticon3:string = '';
77
- export let backgroundsrc:string='';
78
- export let backgroundsrcmobile:string='';
79
- export let titlelogopath = '';
80
- export let iconlabels:string = '';
81
- export let visualstructure:string = '';
82
- export let showsubgroups:string = 'false';
83
- //Casino Collections Providers
84
- export let enablecollections:string = '';
85
- export let type:string = '';
86
- export let titletype:string = '';
87
-
88
- // Button icon for random game widget
89
- export let randombuttonicon:string = '';
90
49
 
91
50
  let endpointURL:string;
92
51
  let DS:string;
93
52
  let language:string;
53
+
94
54
  let displayNone:boolean = false;
95
55
  let hasErrors:boolean = false;
96
56
  let error:string = 'Loading, please wait ...';
@@ -104,7 +64,6 @@
104
64
  let scrollTop:boolean = false;
105
65
  let customStylingContainer:HTMLElement;
106
66
  let mostPlayed;
107
- let lastPlayed;
108
67
  let fav;
109
68
 
110
69
  setupI18n({ withLocale: 'en', translations: {}});
@@ -116,10 +75,9 @@
116
75
  scrollTop = e.data.scrollTop;
117
76
  // check if the category has been changed and the scroll top
118
77
  if (scrollTop) {
119
- if (!headerPlaceholderSize) {
120
- headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
78
+ if (headerPlaceholderSize) {
79
+ window.scrollTo({ top: headerPlaceholderSize });
121
80
  }
122
- window.scrollTo({ top: headerPlaceholderSize });
123
81
  }
124
82
  break;
125
83
 
@@ -129,7 +87,7 @@
129
87
  break;
130
88
 
131
89
  case 'CategoryChange':
132
- activecategory = e.data.itemId;
90
+ activecategory = e.data.item.id;
133
91
  break;
134
92
  }
135
93
  }
@@ -150,7 +108,7 @@
150
108
  console.error(error);
151
109
  }
152
110
 
153
- if (!lang || lang.length < 2) {
111
+ if (!lang || lang.length != 2) {
154
112
  error = "Language is missing! Please provide a valid language (alpha2code)";
155
113
  hasErrors = true;
156
114
 
@@ -172,7 +130,6 @@
172
130
  language = lang;
173
131
 
174
132
  mostPlayed = mostplayed;
175
- lastPlayed = lastplayed;
176
133
  fav = favorites;
177
134
 
178
135
  hasErrors = false;
@@ -183,7 +140,6 @@
183
140
  checkSession(endpoint, session).then((res:any) => {
184
141
  sessionID = res.Guid;
185
142
  playerID = res.UserID;
186
- currency = res.Currency;
187
143
  isLoggedIn = true;
188
144
  }, (err:any) => {
189
145
  isLoggedIn = false;
@@ -232,11 +188,10 @@
232
188
 
233
189
  $: lang && setActiveLanguage();
234
190
  $: session && userid && endpoint && setSession();
235
- $: endpoint && datasource && lang && mostplayed && lastplayed && favorites && initialSetup();
191
+ $: endpoint && datasource && lang && mostplayed && favorites && initialSetup();
236
192
  $: opsession && setOpSession();
237
193
  $: clientstyling && setClientStyling();
238
194
  $: clientstylingurl && setClientStylingURL();
239
-
240
195
  </script>
241
196
 
242
197
  <div bind:this={customStylingContainer} class={displayNone ? 'DisplayNone' : ''} part="{displayNone ? 'DisplayNone' : ''}">
@@ -251,38 +206,29 @@
251
206
  endpoint={endpointURL}
252
207
  datasource={DS}
253
208
  lang={language}
254
- session={sessionID}
209
+ session={session}
255
210
  userid={userid}
256
- sessioncheck="false"
257
211
  {actionevent}
258
- {filteredcategories}
259
212
  {mostplayed}
260
213
  {mostplayedrounds}
261
- {lastplayed}
262
- {lastplayedperiod}
263
214
  {favorites}
264
215
  {activecategory}
265
216
  {clientstyling}
266
217
  {clientstylingurl}
267
218
  {containermaxwidth}
268
- location="secondaryMenu"
269
- {showsubgroups}
270
219
  ></casino-categories-slider>
271
220
  <casino-page
272
- session={sessionID}
221
+ session={session}
273
222
  userid={userid}
274
223
  endpoint={endpointURL}
275
224
  datasource={DS}
276
225
  lang={language}
277
- {visiblegames}
278
- {playrandomgame}
226
+ visiblegames="10"
279
227
  {activecategory}
280
228
  {alternativesearch}
281
229
  {favorites}
282
230
  {mostplayedrounds}
283
231
  {mostplayed}
284
- {lastplayed}
285
- {lastplayedperiod}
286
232
  {clientstyling}
287
233
  {clientstylingurl}
288
234
  {lobbyid}
@@ -290,81 +236,43 @@
290
236
  {haspanicbutton}
291
237
  {livecasino}
292
238
  {currency}
293
- {filteredcategories}
294
- {gamepagemodalurl}
295
- {randombuttonicon}
296
- {enablejackpotbanner}
297
- {enablecasinowinners}
298
- {periodrecent}
299
- {periodtop}
300
- {numberusersrecent}
301
- {numberuserstop}
302
- {amountlimit}
303
- {isrecentavailable}
304
- {istopavailable}
305
- {integratedgameframedesktop}
306
- {integratedgameframemobile}
307
- {defaultcurrency}
308
- {enableautoscroll}
309
- {tabsorder}
310
- {backgroundsrc}
311
- {backgroundsrcmobile}
312
- {titlelogopath}
313
- {caticon0}
314
- {caticon1}
315
- {caticon2}
316
- {caticon3}
317
- {iconlabels}
318
- {enablecollections}
319
- {type}
320
- {titletype}>
321
- </casino-page>
322
- {#if gamemodal == 'true'}
323
- <casino-modal
324
- session={sessionID}
239
+ ></casino-page>
240
+ <casino-modal
241
+ session={session}
242
+ userid={userid}
243
+ endpoint={endpointURL}
244
+ datasource={DS}
245
+ lang={language}
246
+ {clientstyling}
247
+ {clientstylingurl}
248
+ ><casino-game-page
249
+ session={session}
325
250
  userid={userid}
326
251
  endpoint={endpointURL}
327
252
  datasource={DS}
328
253
  lang={language}
329
- sessioncheck="false"
254
+ loginevent={loginevent}
255
+ registerevent={registerevent}
256
+ depositevent={depositevent}
257
+ {playforfun}
258
+ {favorites}
330
259
  {clientstyling}
331
260
  {clientstylingurl}
332
- {gamepagemodalurl}
261
+ {clockformat}
333
262
  {haspanicbutton}
334
- >
335
- <casino-game-page
336
- session={sessionID}
337
- userid={userid}
338
- endpoint={endpointURL}
339
- datasource={DS}
340
- lang={language}
341
- loginevent={loginevent}
342
- registerevent={registerevent}
343
- depositevent={depositevent}
344
- checksession="false"
345
- {playforfun}
346
- {favorites}
347
- {clientstyling}
348
- {clientstylingurl}
349
- {clockformat}
350
- {haspanicbutton}
351
- {currency}
352
- {integratedgameframedesktop}
353
- {integratedgameframemobile}
354
- />
355
- </casino-modal>
356
- {/if}
263
+ {currency}
264
+ />
265
+ </casino-modal>
357
266
  <casino-filter-modal
358
267
  {clientstylingurl}
359
- session={sessionID}
268
+ session={session}
360
269
  userid={userid}
361
270
  endpoint={endpointURL}
362
271
  datasource={DS}
363
272
  lang={language}
364
- sessioncheck="false"
365
273
  {clientstyling}>
366
274
  <casino-filter-page
367
- session={sessionID}
275
+ session={session}
368
276
  userid={userid}
369
277
  endpoint={endpointURL}
370
278
  datasource={DS}