@everymatrix/player-account-controller 0.0.346 → 0.0.348
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
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
lang="en"
|
|
41
41
|
env="stage"
|
|
42
42
|
separatelimits="true"
|
|
43
|
+
userroles="everyone"
|
|
43
44
|
></player-account-controller>
|
|
44
45
|
<!--<player-account-controller cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1"
|
|
45
46
|
accountpath="/menu-locations/profile-menu"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.348",
|
|
4
4
|
"main": "dist/player-account-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"typescript": "^3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@everymatrix/player-account-menu": "^0.0.
|
|
33
|
-
"@everymatrix/player-account-notifications": "^0.0.
|
|
32
|
+
"@everymatrix/player-account-menu": "^0.0.348",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.348",
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
35
|
"sirv-cli": "^1.0.0",
|
|
36
36
|
"svelte": "^3.0.0"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "708892fbea1ff067699e563de6b702ae7870582a"
|
|
42
42
|
}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
export let lang:string = '';
|
|
34
34
|
export let operator:string = 'Everymatrix';
|
|
35
35
|
export let separatelimits:string = 'true';
|
|
36
|
+
export let userroles:string = '';
|
|
36
37
|
|
|
37
38
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
38
39
|
|
|
@@ -366,7 +367,7 @@
|
|
|
366
367
|
case 'PlayerAccountGamingLimitDelete':
|
|
367
368
|
let limitsDeleteData:any = e.data.limit ? e.data.limit : {};
|
|
368
369
|
let deletedPeriodLimit:any;
|
|
369
|
-
|
|
370
|
+
|
|
370
371
|
if (Array.isArray(limitsDeleteData)) {
|
|
371
372
|
deletedPeriodLimit = limitsDeleteData.map((item) => item.period);
|
|
372
373
|
} else {
|
|
@@ -426,8 +427,8 @@
|
|
|
426
427
|
}).then((res:any):void => {
|
|
427
428
|
getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint));
|
|
428
429
|
});
|
|
429
|
-
|
|
430
|
-
|
|
430
|
+
|
|
431
|
+
|
|
431
432
|
break;
|
|
432
433
|
|
|
433
434
|
case 'GamingLimitsConfirmChanges':
|
|
@@ -452,6 +453,9 @@
|
|
|
452
453
|
}
|
|
453
454
|
|
|
454
455
|
const getNotificationsDetails = (url:URL):void => {
|
|
456
|
+
|
|
457
|
+
url.searchParams.append('userRoles', userroles);
|
|
458
|
+
|
|
455
459
|
fetch(url.href)
|
|
456
460
|
.then((res:any) => res.json())
|
|
457
461
|
.then((data:any):void => {
|
|
@@ -684,7 +688,7 @@
|
|
|
684
688
|
});
|
|
685
689
|
|
|
686
690
|
$: lang && switchContent && pagePath && setActiveLanguage();
|
|
687
|
-
$: cmsendpoint && endpoint && customnotifications && playerid && session && lang && env && initialLoad();
|
|
691
|
+
$: cmsendpoint && endpoint && customnotifications && playerid && session && lang && env && userroles && initialLoad();
|
|
688
692
|
$: depositlimit && wageringlimit && losslimit && timelimit;
|
|
689
693
|
</script>
|
|
690
694
|
|
|
@@ -695,7 +699,7 @@
|
|
|
695
699
|
{#if isMobile}
|
|
696
700
|
{#if !switchContent}
|
|
697
701
|
<nav class="PlayerAccountMobile" part="PlayerAccountMobile">
|
|
698
|
-
<player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
|
|
702
|
+
<player-account-menu {endpoint} {session} {playerid} {lang} {userroles}></player-account-menu>
|
|
699
703
|
<player-account-notifications customnotif={customnotifications}></player-account-notifications>
|
|
700
704
|
</nav>
|
|
701
705
|
{:else}
|
|
@@ -731,7 +735,7 @@
|
|
|
731
735
|
{/if}
|
|
732
736
|
{:else}
|
|
733
737
|
<nav>
|
|
734
|
-
<player-account-menu {endpoint} {session} {playerid} {lang} selecteditem={selected}></player-account-menu>
|
|
738
|
+
<player-account-menu {endpoint} {session} {playerid} {lang} selecteditem={selected} {userroles}></player-account-menu>
|
|
735
739
|
</nav>
|
|
736
740
|
<main>
|
|
737
741
|
{#if switchContent && pagePath === widgetPath[0]}
|