@everymatrix/user-actions 1.80.16 → 1.80.18
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.
|
@@ -32,6 +32,10 @@ const actionsMapping = {
|
|
|
32
32
|
"financial-limit-notification": {
|
|
33
33
|
"emit": "openLimitNotificationModal",
|
|
34
34
|
"listen": "closeLimitNotificationModal"
|
|
35
|
+
},
|
|
36
|
+
"account-review-notification": {
|
|
37
|
+
"emit": "openAccountReviewModal",
|
|
38
|
+
"listen": "closeAccountReviewModal"
|
|
35
39
|
}
|
|
36
40
|
};
|
|
37
41
|
|
|
@@ -26,5 +26,9 @@ export const actionsMapping = {
|
|
|
26
26
|
"financial-limit-notification": {
|
|
27
27
|
"emit": "openLimitNotificationModal",
|
|
28
28
|
"listen": "closeLimitNotificationModal"
|
|
29
|
+
},
|
|
30
|
+
"account-review-notification": {
|
|
31
|
+
"emit": "openAccountReviewModal",
|
|
32
|
+
"listen": "closeAccountReviewModal"
|
|
29
33
|
}
|
|
30
34
|
};
|
|
@@ -28,6 +28,10 @@ const actionsMapping = {
|
|
|
28
28
|
"financial-limit-notification": {
|
|
29
29
|
"emit": "openLimitNotificationModal",
|
|
30
30
|
"listen": "closeLimitNotificationModal"
|
|
31
|
+
},
|
|
32
|
+
"account-review-notification": {
|
|
33
|
+
"emit": "openAccountReviewModal",
|
|
34
|
+
"listen": "closeAccountReviewModal"
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
|
|
@@ -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"},"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}
|
|
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"},"account-review-notification":{emit:"openAccountReviewModal",listen:"closeAccountReviewModal"}},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}
|