@everymatrix/user-actions 1.80.12 → 1.80.13

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.
@@ -28,6 +28,10 @@ const actionsMapping = {
28
28
  "expired-consents": {
29
29
  "emit": "openExpiredConsentsModal",
30
30
  "listen": "closeExpiredConsentsModal"
31
+ },
32
+ "player-limit-notification": {
33
+ "emit": "openLimitNotificationModal",
34
+ "listen": "closeLimitNotificationModal"
31
35
  }
32
36
  };
33
37
 
@@ -22,5 +22,9 @@ export const actionsMapping = {
22
22
  "expired-consents": {
23
23
  "emit": "openExpiredConsentsModal",
24
24
  "listen": "closeExpiredConsentsModal"
25
+ },
26
+ "player-limit-notification": {
27
+ "emit": "openLimitNotificationModal",
28
+ "listen": "closeLimitNotificationModal"
25
29
  }
26
30
  };
@@ -24,6 +24,10 @@ const actionsMapping = {
24
24
  "expired-consents": {
25
25
  "emit": "openExpiredConsentsModal",
26
26
  "listen": "closeExpiredConsentsModal"
27
+ },
28
+ "player-limit-notification": {
29
+ "emit": "openLimitNotificationModal",
30
+ "listen": "closeLimitNotificationModal"
27
31
  }
28
32
  };
29
33
 
@@ -23,4 +23,8 @@ export declare const actionsMapping: {
23
23
  emit: string;
24
24
  listen: string;
25
25
  };
26
+ "player-limit-notification": {
27
+ emit: string;
28
+ listen: string;
29
+ };
26
30
  };
@@ -1 +1 @@
1
- import{r as i}from"./index-2b2bb7fc.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"}},e=class{constructor(e){i(this,e),this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)},this.endpoint=void 0,this.userid=void 0,this.actionStack=[]}handleEvent(i){var e,t;(null===(t=o[null===(e=this.actionStack[0])||void 0===e?void 0:e.action])||void 0===t?void 0:t.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};e.style=":host{display:block}";export{e as user_actions}
1
+ import{r as i}from"./index-2b2bb7fc.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"},"player-limit-notification":{emit:"openLimitNotificationModal",listen:"closeLimitNotificationModal"}},t=class{constructor(t){i(this,t),this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)},this.endpoint=void 0,this.userid=void 0,this.actionStack=[]}handleEvent(i){var t,e;(null===(e=o[null===(t=this.actionStack[0])||void 0===t?void 0:t.action])||void 0===e?void 0:e.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};t.style=":host{display:block}";export{t as user_actions}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/user-actions",
3
- "version": "1.80.12",
3
+ "version": "1.80.13",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",