@everymatrix/player-account-controller 0.0.222 → 0.0.227

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
@@ -35,8 +35,6 @@
35
35
  cmsendpoint="https://widgets.everymatrix.com/apijson"
36
36
  playerid="3657535"
37
37
  session="e518be84-5441-4905-ba97-7834c6a955a1"
38
- accountpath="/profile-menu"
39
- notificationpath="/support-information"
40
38
  customnotifications="#58586B,#2687F6,#D0046C"
41
39
  lang="en"
42
40
  ></player-account-controller>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-controller",
3
- "version": "0.0.222",
3
+ "version": "0.0.227",
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.222",
33
- "@everymatrix/player-account-notifications": "^0.0.222",
32
+ "@everymatrix/player-account-menu": "^0.0.227",
33
+ "@everymatrix/player-account-notifications": "^0.0.227",
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": "3f56a3b8fe7c6974efedb51c6584f188e1d31908"
41
+ "gitHead": "87c5d90286e7d4214a1e8f9ec974787cb1fd71a6"
42
42
  }
@@ -23,8 +23,6 @@
23
23
  import '@everymatrix/player-gaming-history';
24
24
 
25
25
  export let cmsendpoint:string = '';
26
- export let accountpath:string = '';
27
- export let notificationpath:string = '';
28
26
  export let customnotifications:string = '';
29
27
  export let limitspath:string = '';
30
28
  export let playerid:string = '';
@@ -35,6 +33,8 @@
35
33
 
36
34
  setupI18n({ withLocale: 'en', translations: {}});
37
35
 
36
+ let accountpath:string = '/profile-menu';
37
+ let notificationpath:string = '/support-information';
38
38
  let isLoading:boolean = false;
39
39
  let userAgent:string = window.navigator.userAgent;
40
40
  let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
@@ -70,8 +70,8 @@
70
70
  'Withdrawal',
71
71
  'Pending Withdrawals',
72
72
  'Transaction History'];
73
- const accountMenuEndpointURL:string = cmsendpoint + `/${lang}` + accountpath;
74
- const notificationsEndpointURL:string = cmsendpoint + `/${lang}` + notificationpath;
73
+ const accountMenuEndpointURL:string = `${cmsendpoint}/${lang}/${accountpath}`;
74
+ const notificationsEndpointURL:string = `${cmsendpoint}/${lang}/${notificationpath}`;
75
75
 
76
76
  let switchContent:boolean = false;
77
77
 
@@ -304,7 +304,7 @@
304
304
  body: JSON.stringify(limitsDeleteData)
305
305
  };
306
306
 
307
- let url:any = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);;
307
+ let url:any = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);
308
308
 
309
309
  if (limitName === 'deposit' || limitName === 'cumulativeSession') {
310
310
  if (Array.isArray(deletedPeriodLimit)) {
@@ -522,8 +522,8 @@
522
522
 
523
523
 
524
524
  const getData = () => {
525
- getAccountMenuDetails(cmsendpoint + `/${lang}` + accountpath);
526
- getNotificationsDetails(cmsendpoint + `/${lang}` + notificationpath);
525
+ getAccountMenuDetails(`${cmsendpoint}/${lang}${accountpath}`);
526
+ getNotificationsDetails(`${cmsendpoint}/${lang}${notificationpath}`);
527
527
  getUserProfileInfo();
528
528
  getGamingLimits(`${endpoint}/player/${playerid}/limits`);
529
529
  getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
@@ -661,20 +661,20 @@
661
661
  grid-template-areas: "nav main aside";
662
662
  grid-template-rows: auto;
663
663
  grid-template-columns: 250px 1fr 230px;
664
- background: #F9F8F8;
664
+ background: var(--emfe-w-color-gray-50, #F9F8F8);
665
665
  padding-right: 30px;
666
666
  &.PlayerAccountMobilePage {
667
667
  display: block;
668
- background: #F9F8F8;
668
+ background: var(--emfe-w-color-gray-50, #F9F8F8);
669
669
  padding-right: 0px;
670
670
  }
671
671
  }
672
672
  .PlayerAccountPage > nav {
673
673
  grid-area: nav;
674
- background: #58586B;
674
+ background: var(--emfe-w-color-gray-300, #58586B);
675
675
  &.PlayerAccountMobile {
676
- background: #07072A;
677
- color: #FFF;
676
+ background: var(--emfe-w-color-contrast, #07072A);
677
+ color: var(--emfe-w-color-white, #FFFFFF);
678
678
  }
679
679
  }
680
680
  .PlayerAccountPage > main {