@everymatrix/user-actions 1.80.14 → 1.80.16

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.
@@ -29,7 +29,7 @@ const actionsMapping = {
29
29
  "emit": "openExpiredConsentsModal",
30
30
  "listen": "closeExpiredConsentsModal"
31
31
  },
32
- "player-limit-notification": {
32
+ "financial-limit-notification": {
33
33
  "emit": "openLimitNotificationModal",
34
34
  "listen": "closeLimitNotificationModal"
35
35
  }
@@ -23,7 +23,7 @@ export const actionsMapping = {
23
23
  "emit": "openExpiredConsentsModal",
24
24
  "listen": "closeExpiredConsentsModal"
25
25
  },
26
- "player-limit-notification": {
26
+ "financial-limit-notification": {
27
27
  "emit": "openLimitNotificationModal",
28
28
  "listen": "closeLimitNotificationModal"
29
29
  }
@@ -25,7 +25,7 @@ const actionsMapping = {
25
25
  "emit": "openExpiredConsentsModal",
26
26
  "listen": "closeExpiredConsentsModal"
27
27
  },
28
- "player-limit-notification": {
28
+ "financial-limit-notification": {
29
29
  "emit": "openLimitNotificationModal",
30
30
  "listen": "closeLimitNotificationModal"
31
31
  }
@@ -23,7 +23,7 @@ export declare const actionsMapping: {
23
23
  emit: string;
24
24
  listen: string;
25
25
  };
26
- "player-limit-notification": {
26
+ "financial-limit-notification": {
27
27
  emit: string;
28
28
  listen: string;
29
29
  };
@@ -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"},"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}
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"},"financial-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.14",
3
+ "version": "1.80.16",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",