@everymatrix/user-actions 1.54.9 → 1.54.11
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/dist/cjs/{index-f34de0f7.js → index-cd722b1f.js} +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-actions.cjs.entry.js +1 -1
- package/dist/cjs/user-actions.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-6673d11a.js → index-a5098c92.js} +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-actions.entry.js +1 -1
- package/dist/esm/user-actions.js +3 -3
- package/dist/stencil.config.js +2 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-actions/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/user-actions/{p-b8e78f4c.entry.js → p-14c4eadc.entry.js} +1 -1
- package/dist/user-actions/p-601818b5.js +2 -0
- package/dist/user-actions/user-actions.esm.js +1 -1
- package/package.json +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-actions/.stencil/packages/stencil/user-actions/stencil.config.dev.d.ts +0 -2
- package/dist/user-actions/p-d3ab6990.js +0 -2
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'user-actions';
|
|
|
24
24
|
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -324,7 +324,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
324
324
|
styleContainerNode.append(styleElm);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
327
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
328
328
|
styleContainerNode.insertBefore(styleElm, null);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -349,7 +349,7 @@ var attachStyles = (hostRef) => {
|
|
|
349
349
|
const scopeId2 = addStyle(
|
|
350
350
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
351
351
|
cmpMeta);
|
|
352
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
352
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
353
353
|
elm["s-sc"] = scopeId2;
|
|
354
354
|
elm.classList.add(scopeId2 + "-h");
|
|
355
355
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-cd722b1f.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-cd722b1f.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-actions.cjs.js', document.baseURI).href));
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'user-actions';
|
|
|
2
2
|
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -302,7 +302,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
302
302
|
styleContainerNode.append(styleElm);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
305
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
306
306
|
styleContainerNode.insertBefore(styleElm, null);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -327,7 +327,7 @@ var attachStyles = (hostRef) => {
|
|
|
327
327
|
const scopeId2 = addStyle(
|
|
328
328
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
329
329
|
cmpMeta);
|
|
330
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
330
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
331
331
|
elm["s-sc"] = scopeId2;
|
|
332
332
|
elm.classList.add(scopeId2 + "-h");
|
|
333
333
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-a5098c92.js';
|
|
2
|
+
export { s as setNonce } from './index-a5098c92.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/dist/esm/user-actions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-a5098c92.js';
|
|
2
|
+
export { s as setNonce } from './index-a5098c92.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { sass } from "@stencil/sass";
|
|
2
|
+
import { cleanPackageJsonStencil } from "../../../tools/plugins";
|
|
2
3
|
export const config = {
|
|
3
4
|
namespace: 'user-actions',
|
|
4
5
|
taskQueue: 'async',
|
|
@@ -7,7 +8,7 @@ export const config = {
|
|
|
7
8
|
extras: {
|
|
8
9
|
experimentalImportInjection: true
|
|
9
10
|
},
|
|
10
|
-
plugins: [sass()],
|
|
11
|
+
plugins: [sass(), cleanPackageJsonStencil()],
|
|
11
12
|
outputTargets: [
|
|
12
13
|
{
|
|
13
14
|
type: 'dist',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i}from"./p-
|
|
1
|
+
import{r as i}from"./p-601818b5.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.actionStack=[],this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)}}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}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],v=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?b(w):u.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(m),y(p),(d=m.length>0)&&u.raf(w)},b=t=>h().then(t),$=v(p,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>E,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t,M=new WeakMap,P=t=>"sc-"+t.l,x=(t,e)=>{if(e&&!t.u&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.u=()=>{e["s-p"].splice(n-1,1),o()})))}},N=(t,e)=>{if(t.o|=16,!(4&t.o))return x(t,t.h),$((()=>T(t,e)));t.o|=512},T=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>D(o,t,e,n))),t.m=void 0),s=D(o,"componentWillLoad",void 0,n)),A(s,(()=>L(t,o,e)))},A=(t,e)=>H(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),H=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,L=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=P(e),s=r.get(o);if(t=11===t.nodeType?t:a,s)if("string"==typeof s){let i,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),i.innerHTML=s;const r=null!=(n=u.v)?n:S(a);if(null!=r&&i.setAttribute("nonce",r),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=l),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);R(t,e,s),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>U(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},R=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){s(e,t.$hostElement$)}return null},U=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,F(e),t.$(e),n||W()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>N(t,!1))),t.o&=-517},W=()=>{b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},D=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},F=t=>t.classList.add("hydrated"),q=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.S.get(e),l=i.o,c=i.t;o=C(o,s.j[e][0]),8&l&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(i.S.set(e,o),c&&2==(18&l)&&N(i,!1))},G=(t,e,o)=>{var s,i;const r=t.prototype;if(e.j){const l=Object.entries(null!=(s=e.j)?s:{});if(l.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:i,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.j[t][0]|=2048),l&&(e.j[t][0]|=4096),(1&o||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.j[t][0]))return((t,e)=>n(this).S.get(e))(0,t);const o=n(this),s=o?o.t:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=n(this);if(l){const n=32&s?this[t]:r.$hostElement$[t];return void 0===n&&r.S.get(t)?i=r.S.get(t):!r.S.get(t)&&n&&r.S.set(t,n),l.call(this,C(i,s)),void q(this,t,i=32&s?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.j[t][0]))return q(this,t,i,e),void(1&o&&!r.t&&r.O.then((()=>{4096&e.j[t][0]&&r.t[t]!==r.S.get(t)&&(r.t[t]=i)})));const n=()=>{const n=r.t[t];!r.S.get(t)&&n&&r.S.set(t,n),r.t[t]=C(i,s),q(this,t,r.t[t],e)};r.t?n():r.O.then((()=>n()))}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,s,i){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&i!==s){const n=o.t,r=null==(l=e.k)?void 0:l[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,i,s,t)}))}return}}const a=Object.getOwnPropertyDescriptor(r,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.k)?i:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},V=(t,o={})=>{var h;const d=[],m=o.exclude||[],p=c.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],j:o[2],C:o[3]};4&l.o&&(j=!0),l.j=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,S:new Map};o.O=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_(this,t,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)_(t,e,o.C),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.h=n);break}}o.j&&Object.entries(o.j).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.M){const r=((t,e)=>{const n=t.l.replace(/-/g,"_"),o=t.M;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(G(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=P(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>N(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);e.N&&(e.N.map((t=>t())),e.N=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.T)?void 0:t.A)instanceof Node&&!e.T.A.isConnected&&delete e.T.A}))}componentOnReady(){return n(this).O}};l.M=t[0],m.includes(c)||p.get(c)||(d.push(c),p.define(c,G(a,l,1)))}))})),d.length>0&&(j&&(w.textContent+=l),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(h=u.v)?h:S(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(W,30)))},_=(t,e,n)=>{n&&n.map((([n,o,s])=>{const i=B(t,n),r=z(e,s),l=I(n);u.ael(i,o,r,l),(e.N=e.N||[]).push((()=>u.rel(i,o,r,l)))}))},z=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},B=(t,e)=>8&e?c:t,I=t=>({passive:!!(1&t),capture:!!(2&t)}),J=t=>u.v=t;export{V as b,h as p,o as r,J as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as a}from"./p-601818b5.js";export{s as setNonce}from"./p-601818b5.js";import{g as t}from"./p-e1255160.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),e(a)})().then((async s=>(await t(),a([["p-14c4eadc",[[1,"user-actions",{endpoint:[1],userid:[1],actionStack:[32]},[[8,"message","handleEvent"]]]]]],s))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/user-actions",
|
|
3
|
-
"version": "1.54.
|
|
3
|
+
"version": "1.54.11",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],v=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?b(w):u.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(m),y(p),(d=m.length>0)&&u.raf(w)},b=t=>h().then(t),$=v(p,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>E,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t,M=new WeakMap,P=t=>"sc-"+t.l,x=(t,e)=>{if(e&&!t.u&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.u=()=>{e["s-p"].splice(n-1,1),o()})))}},A=(t,e)=>{if(t.o|=16,!(4&t.o))return x(t,t.h),$((()=>H(t,e)));t.o|=512},H=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>W(o,t,e,n))),t.m=void 0),s=W(o,"componentWillLoad",void 0,n)),N(s,(()=>D(t,o,e)))},N=(t,e)=>T(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),T=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,D=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=P(e),s=r.get(o);if(t=11===t.nodeType?t:a,s)if("string"==typeof s){let i,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),i.innerHTML=s;const r=null!=(n=u.v)?n:S(a);if(null!=r&&i.setAttribute("nonce",r),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=l),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);L(t,e,s),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>R(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},L=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){s(e,t.$hostElement$)}return null},R=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,F(e),t.$(e),n||U()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>A(t,!1))),t.o&=-517},U=()=>{b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},W=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},F=t=>t.classList.add("hydrated"),q=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.S.get(e),l=i.o,c=i.t;o=C(o,s.j[e][0]),8&l&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(i.S.set(e,o),c&&2==(18&l)&&A(i,!1))},G=(t,e,o)=>{var s,i;const r=t.prototype;if(e.j){const l=Object.entries(null!=(s=e.j)?s:{});if(l.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:i,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.j[t][0]|=2048),l&&(e.j[t][0]|=4096),(1&o||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.j[t][0]))return((t,e)=>n(this).S.get(e))(0,t);const o=n(this),s=o?o.t:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=n(this);if(l){const n=32&s?this[t]:r.$hostElement$[t];return void 0===n&&r.S.get(t)?i=r.S.get(t):!r.S.get(t)&&n&&r.S.set(t,n),l.call(this,C(i,s)),void q(this,t,i=32&s?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.j[t][0]))return q(this,t,i,e),void(1&o&&!r.t&&r.O.then((()=>{4096&e.j[t][0]&&r.t[t]!==r.S.get(t)&&(r.t[t]=i)})));const n=()=>{const n=r.t[t];!r.S.get(t)&&n&&r.S.set(t,n),r.t[t]=C(i,s),q(this,t,r.t[t],e)};r.t?n():r.O.then((()=>n()))}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,s,i){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&i!==s){const n=o.t,r=null==(l=e.k)?void 0:l[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,i,s,t)}))}return}}const a=Object.getOwnPropertyDescriptor(r,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.k)?i:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},V=(t,o={})=>{var h;const d=[],m=o.exclude||[],p=c.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],j:o[2],C:o[3]};4&l.o&&(j=!0),l.j=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,S:new Map};o.O=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_(this,t,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)_(t,e,o.C),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.h=n);break}}o.j&&Object.entries(o.j).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.M){const r=((t,e)=>{const n=t.l.replace(/-/g,"_"),o=t.M;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(G(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=P(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>A(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);e.A&&(e.A.map((t=>t())),e.A=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.H)?void 0:t.N)instanceof Node&&!e.H.N.isConnected&&delete e.H.N}))}componentOnReady(){return n(this).O}};l.M=t[0],m.includes(c)||p.get(c)||(d.push(c),p.define(c,G(a,l,1)))}))})),d.length>0&&(j&&(w.textContent+=l),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(h=u.v)?h:S(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(U,30)))},_=(t,e,n)=>{n&&n.map((([n,o,s])=>{const i=B(t,n),r=z(e,s),l=I(n);u.ael(i,o,r,l),(e.A=e.A||[]).push((()=>u.rel(i,o,r,l)))}))},z=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},B=(t,e)=>8&e?c:t,I=t=>({passive:!!(1&t),capture:!!(2&t)}),J=t=>u.v=t;export{V as b,h as p,o as r,J as s}
|