@descope/access-key-management-widget 0.1.39 → 0.1.41

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/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /**
3
- * @descope/access-key-management-widget v0.1.39
3
+ * @descope/access-key-management-widget v0.1.41
4
4
  */
5
5
  import{pluralize as e,createSingletonMixin as t,compose as s,createTemplate as i,withMemCache as o,debounce as a}from"@descope/sdk-helpers";import{__awaiter as c,__classPrivateFieldGet as n,__classPrivateFieldSet as d}from"tslib";import{projectIdMixin as r,observeAttributesMixin as l,loggerMixin as u,createValidateAttributesMixin as h,createStateManagementMixin as v,initLifecycleMixin as g,staticResourcesMixin as y,descopeUiMixin as m,initElementMixin as p,modalMixin as f,formMixin as R,notificationsMixin as w,debuggerMixin as b,themeMixin as K}from"@descope/sdk-mixins";import{GridDriver as k,ButtonDriver as M,TextDriver as A,MultiSelectDriver as W,TextFieldDriver as C}from"@descope/sdk-component-drivers";import{createSelector as x}from"reselect";import{createAsyncThunk as S}from"@reduxjs/toolkit";import j from"@descope/web-js-sdk";const $=e=>e.selectedAccessKeysIds,T=e=>e.notifications,L=x((e=>e.accessKeysList.data),(e=>e.map((e=>Object.assign(Object.assign({},e),{expireTimeFormatted:(null==e?void 0:e.expireTime)?new Date(1e3*((null==e?void 0:e.expireTime)||0)).toLocaleString():"Never",createdTimeFormatted:new Date(1e3*((null==e?void 0:e.createdTime)||0)).toLocaleString(),status:(null==e?void 0:e.expireTime)&&new Date(1e3*((null==e?void 0:e.expireTime)||0))<new Date?"expired":null==e?void 0:e.status}))))),O=x($,L,((e,t)=>t.filter((t=>e.includes(t.id))))),P=x($,(e=>!!e.length)),I=x(O,(e=>e.every((e=>e.editable)))),B=x(I,P,((e,t)=>e&&t));x($,(e=>1===e.length));const D=x(O,(e=>1===e.length?e[0].name:`${e.length} access keys`)),q=e=>(...t)=>s=>{s.addCase(e.pending,((e,s)=>{t.forEach((({onPending:t})=>{null==t||t(e,s)}))})),s.addCase(e.fulfilled,((e,s)=>{t.forEach((({onFulfilled:t})=>{null==t||t(e,s)}))})),s.addCase(e.rejected,((e,s)=>{t.forEach((({onRejected:t})=>{null==t||t(e,s)}))}))},F=e=>({onFulfilled:t=>{e(t).loading=!1},onPending:t=>{e(t).loading=!0,e(t).error=null},onRejected:(t,s)=>{e(t).loading=!1,e(t).error=s.error}}),E=({getErrorMsg:e,getSuccessMsg:t})=>({onFulfilled:(e,s)=>{t&&e.notifications.push({type:"success",msg:t(s)})},onRejected:(t,s)=>{e&&t.notifications.push({type:"error",msg:e(s)})}}),N=S("accessKeys/create",((e,{extra:{api:t}})=>t.accesskey.create(e))),U=q(N)({onFulfilled:(e,t)=>{e.accessKeysList.data.unshift(t.payload.key)}},F((e=>e.createAccessKey)),E({getSuccessMsg:()=>"Access Key created successfully",getErrorMsg:e=>{var t;return`\n <div>\n <div>Failed to create access key</div>\n ${null===(t=e.error)||void 0===t?void 0:t.message}\n </div>`}})),H={action:N,reducer:U},Z=S("accessKeys/delete",((e,{extra:{api:t}})=>t.accesskey.deleteBatch(e))),V=q(Z)({onFulfilled:(e,t)=>{e.accessKeysList.data=e.accessKeysList.data.filter((e=>!t.meta.arg.includes(e.id))),e.selectedAccessKeysIds=[]}},F((e=>e.deleteAccessKey)),E({getSuccessMsg:t=>e(t.meta.arg.length)`${["",t.meta.arg.length]} ${["A","a"]}ccess key${["","s"]} deleted successfully`,getErrorMsg:t=>e(t.meta.arg.length)`Failed to delete access key${["","s"]}`})),z={action:Z,reducer:V},J=S("accessKeys/search",((e,{extra:{api:t},getState:s})=>{const i=s().searchParams;return t.accesskey.search(Object.assign(Object.assign({},i),e))})),G=q(J)({onPending:(e,t)=>{e.searchParams=Object.assign(Object.assign({},e.searchParams),t.meta.arg)},onFulfilled:(e,t)=>{e.accessKeysList.data=t.payload}},F((e=>e.accessKeysList))),Q={action:J,reducer:G},X=S("accessKeys/activate",((e,{extra:{api:t}})=>t.accesskey.activate(e))),Y=q(X)({onFulfilled:(e,t)=>{e.accessKeysList.data.forEach((e=>{t.meta.arg.includes(e.id)&&(e.status="active")}))}},F((e=>e.activateAccessKey)),E({getSuccessMsg:t=>e(t.meta.arg.length)`${["",t.meta.arg.length]} ${["A","a"]}ccess key${["","s"]} activated successfully`,getErrorMsg:t=>e(t.meta.arg.length)`Failed to activate access key${["","s"]}`})),_={action:X,reducer:Y},ee=S("accessKeys/deactivate",((e,{extra:{api:t}})=>t.accesskey.deactivate(e))),te=q(ee)({onFulfilled:(e,t)=>{e.accessKeysList.data.forEach((e=>{t.meta.arg.includes(e.id)&&(e.status="inactive")}))}},F((e=>e.deactivateAccessKey)),E({getSuccessMsg:t=>e(t.meta.arg.length)`${["",t.meta.arg.length]} ${["A","a"]}ccess key${["","s"]} deactivated successfully`,getErrorMsg:t=>e(t.meta.arg.length)`Failed to deactivate access key${["","s"]}`})),se={action:ee,reducer:te},ie=S("tenant/getTenantRoles",((e,{extra:{api:t}})=>t.tenant.getTenantRoles())),oe={action:ie,reducer:q(ie)({onFulfilled:(e,t)=>{e.tenantRoles.data=t.payload.roles}},F((e=>e.tenantRoles)))},ae={accessKeysList:{data:[],loading:!1,error:null},createAccessKey:{loading:!1,error:null},activateAccessKey:{loading:!1,error:null},deactivateAccessKey:{loading:!1,error:null},deleteAccessKey:{loading:!1,error:null},tenantRoles:{loading:!1,error:null,data:[]},searchParams:{text:"",sort:[]},selectedAccessKeysIds:[],notifications:[]},ce={search:"/v1/mgmt/accesskey/search",deleteBatch:"/v1/mgmt/accesskey/delete/batch",create:"/v1/mgmt/accesskey/create",deactivate:"/v1/mgmt/accesskey/deactivate/batch",activate:"/v1/mgmt/accesskey/activate/batch"},ne={roles:"/v1/mgmt/role/all"},de=e=>c(void 0,void 0,void 0,(function*(){const t=yield e.text(),s=JSON.parse(t);if(!e.ok){const t=`${s.errorDescription}${s.errorMessage?`: ${s.errorMessage}`:""}`;throw Error(t||`${e.status} ${e.statusText}`)}e.json=()=>Promise.resolve(s),e.text=()=>Promise.resolve(t)})),re=({text:e,sort:t}={})=>c(void 0,void 0,void 0,(function*(){return new Promise((s=>{const i=[];for(let e=1;e<10;e+=1)i.push({id:`access-key-id-${e}`,name:`Access Key ${e}`,createdBy:`User ${e}`,editable:!0,expireTime:(new Date).getTime()/1e3+2592e3,createdTime:(new Date).getTime()/1e3,roleNames:[`Role ${e}`],status:"active",clientId:`Client ID ${e}`,boundUserId:`User ${e}`});t.forEach((e=>{i.sort(((t,s)=>{var i,o;return e.desc?null===(o=s[e.field])||void 0===o?void 0:o.localeCompare(t[e.field]):null===(i=t[e.field])||void 0===i?void 0:i.localeCompare(s[e.field])}))})),s(i.filter((t=>t.name.toLowerCase().includes(e.toLowerCase())||t.createdBy.toLowerCase().includes(e.toLowerCase()))))}))})),le=({name:e,roleNames:t,userId:s},i)=>c(void 0,void 0,void 0,(function*(){const o=Math.random().toString(10).substring(15);return new Promise((a=>{a({cleartext:Math.random().toString(20).substring(2),key:{id:`access-key-id-${o}`,name:e||`Access Key ${o}`,createdBy:s||`User ${o}`,editable:!0,expireTime:i,createdTime:(new Date).getTime()/1e3,roleNames:t,status:"active",clientId:`Client ID ${o}`,boundUserId:s||`User ${o}`}})}))})),ue=()=>c(void 0,void 0,void 0,(function*(){})),he=()=>c(void 0,void 0,void 0,(function*(){})),ve=()=>c(void 0,void 0,void 0,(function*(){})),ge=e=>new Promise((t=>{const s=[];for(let t=1;t<5;t+=1)s.push({name:`Role ${t}`,description:`Role description ${t}`,createdTime:new Date,permissionNames:[`Permission ${t}`],tenantId:e});t({roles:s})})),ye=({httpClient:e,tenant:t,mock:s})=>({search:({page:i,limit:o=1e4,text:a,sort:n}={})=>c(void 0,void 0,void 0,(function*(){if(s)return re({page:i,limit:o,text:a,sort:n});const c=yield e.post(ce.search,{limit:o,page:i,text:a,sort:n},{queryParams:{tenant:t}});yield de(c);return(yield c.json()).keys})),deleteBatch:i=>c(void 0,void 0,void 0,(function*(){if(s)return ve();const o=yield e.post(ce.deleteBatch,{ids:i},{queryParams:{tenant:t}});return yield de(o),o.json()})),create:({name:i,expiration:o,roleNames:a,userId:n})=>c(void 0,void 0,void 0,(function*(){const c=new Date;c.setDate(c.getDate()+ +o);const d="0"===o[0]?0:Math.floor(c.getTime()/1e3);if(s)return le({name:i,expiration:o,roleNames:a,userId:n},d);const r=yield e.post(ce.create,{name:i,expireTime:d,roleNames:a,userId:n},{queryParams:{tenant:t}});yield de(r);return yield r.json()})),activate:i=>c(void 0,void 0,void 0,(function*(){if(s)return ue();const o=yield e.post(ce.activate,{ids:i},{queryParams:{tenant:t}});yield de(o);return yield o.json()})),deactivate:i=>c(void 0,void 0,void 0,(function*(){if(s)return he();const o=yield e.post(ce.deactivate,{ids:i},{queryParams:{tenant:t}});yield de(o);return yield o.json()}))}),me=({httpClient:e,tenant:t,mock:s})=>({getTenantRoles:()=>c(void 0,void 0,void 0,(function*(){if(s)return ge(t);const i=yield e.get(ne.roles,{queryParams:{tenant:t}});return yield de(i),i.json()}))}),pe=t((e=>{var t,i,o,a;const v=s(r,l,u,h({tenant:h.missingAttrValidator}))(e);return a=class extends v{constructor(){super(...arguments),t.add(this),i.set(this,void 0)}get baseUrl(){return this.getAttribute("base-url")}get tenant(){return this.getAttribute("tenant")}get mock(){return this.getAttribute("mock")}get api(){return n(this,i,"f")||n(this,t,"m",o).call(this),n(this,i,"f")}init(){const e=Object.create(null,{init:{get:()=>super.init}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.init)||void 0===s?void 0:s.call(this),this.observeAttributes(["project-id","base-url","tenant"],(()=>{n(this,i,"f")&&n(this,t,"m",o).call(this)}))}))}},i=new WeakMap,t=new WeakSet,o=function(){this.logger.debug("creating an sdk instance"),d(this,i,((e,t,s)=>{const i=j(Object.assign(Object.assign({},e),{persistTokens:!0}));return{accesskey:ye({httpClient:i.httpClient,tenant:t,mock:s}),tenant:me({httpClient:i.httpClient,tenant:t,mock:s})}})({projectId:this.projectId,baseUrl:this.baseUrl},this.tenant,"true"===this.mock),"f")},a})),fe=t((e=>{const t=s(v({name:"widget",initialState:ae,reducers:{setSelectedAccessKeysIds:(e,{payload:t})=>{e.selectedAccessKeysIds=t},clearNotifications:e=>{e.notifications=[]}},extraReducers:e=>{H.reducer(e),z.reducer(e),Q.reducer(e),_.reducer(e),se.reducer(e),oe.reducer(e)},asyncActions:{searchAccessKeys:Q.action,createAccessKey:H.action,activateAccessKeys:_.action,deactivateAccessKeys:se.action,deleteAccessKeys:z.action,getTenantRoles:oe.action}}),g,u,pe)(e);return class extends t{constructor(...e){super(...e),this.state=ae,this.subscribe((e=>{this.logger.debug("State update:",e),this.state=e}))}}})),Re=t((e=>{const t=s(y,h({"widget-id":h.missingAttrValidator}))(e);return class extends t{get widgetId(){return this.getAttribute("widget-id")}fetchWidgetPage(e){return c(this,void 0,void 0,(function*(){return(yield this.fetchStaticResource(`access-key-management-widget/${this.widgetId}/${e}`,"text")).body}))}}})),we=t((e=>{var t,o,a;return a=class extends(s(u,g,m,p,Re,fe)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){return c(this,void 0,void 0,(function*(){}))}init(){const e=Object.create(null,{init:{get:()=>super.init}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.init)||void 0===s?void 0:s.call(this),yield Promise.all([n(this,t,"m",o).call(this),this.actions.searchAccessKeys(),this.actions.getTenantRoles()]),this.onWidgetRootReady()}))}},t=new WeakSet,o=function(){return c(this,void 0,void 0,(function*(){const e=i(yield this.fetchWidgetPage("root.html"));yield this.loadDescopeUiComponents(e),this.contentRootElement.append(e.content.cloneNode(!0))}))},a})),be=t((e=>{var t,i,d,r,l;return l=class extends(s(fe,u,we)(e)){constructor(){super(...arguments),t.add(this),d.set(this,o((e=>{this.accessKeysTable.data=e}))),r.set(this,a(((e,t)=>{const s=[],{value:i}=t;if(i){const t=e.path;s.push({field:t,desc:"desc"===i})}this.actions.searchAccessKeys({sort:s})})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",i).call(this),this.accessKeysTable.columns.forEach((e=>{e.onSortDirectionChange((e=>{n(this,r,"f").call(this,e.target,e.detail)}))})),n(this,d,"f").call(this,L(this.state)),this.subscribe(n(this,d,"f").bind(this),L)}))}},d=new WeakMap,r=new WeakMap,t=new WeakSet,i=function(){var e;this.accessKeysTable=new k(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="access-keys-table"]'),{logger:this.logger}),this.accessKeysTable.onSelectedItemsChange((e=>{this.actions.setSelectedAccessKeysIds(e.detail.value.map((({id:e})=>e)))}))},l})),Ke=t((e=>{var t,o,a;return a=class extends(s(fe,f,u,we)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),yield n(this,t,"m",o).call(this)}))}},t=new WeakSet,o=function(){var e;return c(this,void 0,void 0,(function*(){this.activateAccessKeysModal=this.createModal(),this.activateAccessKeysModal.setContent(i(yield this.fetchWidgetPage("activate-access-keys-modal.html")));const t=new M((()=>{var e;return null===(e=this.activateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-cancel"]')}),{logger:this.logger});t.onClick((()=>this.activateAccessKeysModal.close()));const s=new M((()=>{var e;return null===(e=this.activateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-submit"]')}),{logger:this.logger});s.onClick((()=>{const e=O(this.state);this.actions.activateAccessKeys(null==e?void 0:e.map((e=>e.id))),this.activateAccessKeysModal.close()}));const o=new A(null===(e=this.activateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="body-text"]'),{logger:this.logger});this.activateAccessKeysModal.beforeOpen=()=>{const e=D(this.state);o.text=`Activate ${e}?`}}))},a})),ke=t((e=>{var t,i,a,d;return d=class extends(s(u,we,fe,Ke)(e)){constructor(){super(...arguments),t.add(this),a.set(this,o((e=>{e?this.activateButton.enable():this.activateButton.disable()})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",i).call(this),this.subscribe(n(this,a,"f").bind(this),B)}))}},a=new WeakMap,t=new WeakSet,i=function(){var e;this.activateButton=new M(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="activate-access-keys"]'),{logger:this.logger}),this.activateButton.disable(),this.activateButton.onClick((()=>{this.activateAccessKeysModal.open()}))},d})),Me=t((e=>{var t,o,a;return a=class extends(s(fe,f,R,u,we)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",o).call(this)}))}},t=new WeakSet,o=function(){return c(this,void 0,void 0,(function*(){this.createdAccessKeyModal=this.createModal(),this.createdAccessKeyModal.setContent(i(yield this.fetchWidgetPage("created-access-key-modal.html")));const e=new M((()=>{var e;return null===(e=this.createdAccessKeyModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-close"]')}),{logger:this.logger});e.onClick((()=>{navigator.clipboard.writeText(this.getFormData(this.createdAccessKeyModal.ele)["generated-key"]),this.resetFormData(this.createdAccessKeyModal.ele),this.createdAccessKeyModal.close()}))}))},a})),Ae=t((e=>{var t,o,a,r,l;return l=class extends(s(fe,f,R,u,we,Me)(e)){constructor(){super(...arguments),t.add(this),o.set(this,void 0),r.set(this,(()=>c(this,void 0,void 0,(function*(){var e,t;yield n(this,o,"f").setData(null===(t=this.state,e=t.tenantRoles.data||[])||void 0===e?void 0:e.map((({name:e})=>({value:e,label:e}))))}))))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",a).call(this)}))}},o=new WeakMap,r=new WeakMap,t=new WeakSet,a=function e(){return c(this,void 0,void 0,(function*(){this.createAccessKeyModal=this.createModal(),this.createAccessKeyModal.setContent(i(yield this.fetchWidgetPage("create-access-key-modal.html")));const s=new M((()=>{var e;return null===(e=this.createAccessKeyModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-cancel"]')}),{logger:this.logger});s.onClick((()=>{this.createAccessKeyModal.close(),this.resetFormData(this.createAccessKeyModal.ele)}));const a=new M((()=>{var e;return null===(e=this.createAccessKeyModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-submit"]')}),{logger:this.logger});a.onClick((()=>c(this,void 0,void 0,(function*(){var e;if(this.validateForm(this.createAccessKeyModal.ele)){const t=yield this.actions.createAccessKey(Object.assign({},this.getFormData(this.createAccessKeyModal.ele)));this.createAccessKeyModal.close(),this.setFormData(this.createdAccessKeyModal.ele,{"generated-key":null===(e=null==t?void 0:t.payload)||void 0===e?void 0:e.cleartext}),this.createdAccessKeyModal.open()}})))),d(this,o,new W((()=>{var e;return null===(e=this.createAccessKeyModal.ele)||void 0===e?void 0:e.querySelector('[data-id="roles-multiselect"]')}),{logger:this.logger}),"f"),n(this,r,"f").call(this),this.createAccessKeyModal.afterClose=()=>{n(this,t,"m",e).call(this)}}))},l})),We=t((e=>{var t,i,o;return o=class extends(s(u,Ae,we)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",i).call(this)}))}},t=new WeakSet,i=function(){var e;this.createButton=new M(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="create-access-key"]'),{logger:this.logger}),this.createButton.onClick((()=>this.createAccessKeyModal.open()))},o})),Ce=t((e=>{var t,o,a;return a=class extends(s(fe,f,u,we)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),yield n(this,t,"m",o).call(this)}))}},t=new WeakSet,o=function(){var e;return c(this,void 0,void 0,(function*(){this.deactivateAccessKeysModal=this.createModal(),this.deactivateAccessKeysModal.setContent(i(yield this.fetchWidgetPage("deactivate-access-keys-modal.html")));const t=new M((()=>{var e;return null===(e=this.deactivateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-cancel"]')}),{logger:this.logger});t.onClick((()=>this.deactivateAccessKeysModal.close()));const s=new M((()=>{var e;return null===(e=this.deactivateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-submit"]')}),{logger:this.logger});s.onClick((()=>{const e=O(this.state);this.actions.deactivateAccessKeys(null==e?void 0:e.map((e=>e.id))),this.deactivateAccessKeysModal.close()}));const o=new A(null===(e=this.deactivateAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="body-text"]'),{logger:this.logger});this.deactivateAccessKeysModal.beforeOpen=()=>{const e=D(this.state);o.text=`Deactivate ${e}?`}}))},a})),xe=t((e=>{var t,i,a,d;return d=class extends(s(u,we,fe,Ce)(e)){constructor(){super(...arguments),t.add(this),a.set(this,o((e=>{e?this.deactivateButton.enable():this.deactivateButton.disable()})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",i).call(this),this.subscribe(n(this,a,"f").bind(this),B)}))}},a=new WeakMap,t=new WeakSet,i=function(){var e;this.deactivateButton=new M(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="deactivate-access-keys"]'),{logger:this.logger}),this.deactivateButton.disable(),this.deactivateButton.onClick((()=>{this.deactivateAccessKeysModal.open()}))},d})),Se=t((e=>{var t,o,a;return a=class extends(s(fe,f,u,we)(e)){constructor(){super(...arguments),t.add(this)}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),yield n(this,t,"m",o).call(this)}))}},t=new WeakSet,o=function(){var e;return c(this,void 0,void 0,(function*(){this.deleteAccessKeysModal=this.createModal(),this.deleteAccessKeysModal.setContent(i(yield this.fetchWidgetPage("delete-access-keys-modal.html")));const t=new M((()=>{var e;return null===(e=this.deleteAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-cancel"]')}),{logger:this.logger});t.onClick((()=>this.deleteAccessKeysModal.close()));const s=new M((()=>{var e;return null===(e=this.deleteAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="modal-submit"]')}),{logger:this.logger});s.onClick((()=>{const e=O(this.state);this.actions.deleteAccessKeys(null==e?void 0:e.map((e=>e.id))),this.deleteAccessKeysModal.close()}));const o=new A(null===(e=this.deleteAccessKeysModal.ele)||void 0===e?void 0:e.querySelector('[data-id="body-text"]'),{logger:this.logger});this.deleteAccessKeysModal.beforeOpen=()=>{const e=D(this.state);o.text=`Delete ${e}?`}}))},a})),je=t((e=>{var t,i,a,d;return d=class extends(s(u,we,fe,Se)(e)){constructor(){super(...arguments),t.add(this),a.set(this,o((e=>{e?this.deleteButton.enable():this.deleteButton.disable()})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",i).call(this),this.subscribe(n(this,a,"f").bind(this),B)}))}},a=new WeakMap,t=new WeakSet,i=function(){var e;this.deleteButton=new M(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="delete-access-keys"]'),{logger:this.logger}),this.deleteButton.disable(),this.deleteButton.onClick((()=>{this.deleteAccessKeysModal.open()}))},d})),$e=t((e=>{var t,i,o,d;return d=class extends(s(u,we,fe)(e)){constructor(){super(...arguments),t.add(this),i.set(this,a((()=>{this.actions.searchAccessKeys({text:this.searchInput.value})})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});var s;return c(this,void 0,void 0,(function*(){yield null===(s=e.onWidgetRootReady)||void 0===s?void 0:s.call(this),n(this,t,"m",o).call(this)}))}},i=new WeakMap,t=new WeakSet,o=function(){var e;this.searchInput=new C(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="search-input"]'),{logger:this.logger}),this.searchInput.onInput(n(this,i,"f"))},d}));const Te={success:(new DOMParser).parseFromString('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g id="Checkmark">\n<path id="Shape" d="M10.0485 15.6396C9.5799 15.171 8.8201 15.171 8.35147 15.6396C7.88284 16.1082 7.88284 16.868 8.35147 17.3367L12.7072 21.6924C13.1759 22.1611 13.9357 22.1611 14.4043 21.6924L24.7152 11.3815C25.1838 10.9129 25.1838 10.1531 24.7152 9.68448C24.2466 9.21585 23.4868 9.21585 23.0181 9.68448L13.5558 19.1469L10.0485 15.6396Z" fill="currentcolor"/>\n</g>\n</svg>\n',"image/svg+xml").firstChild,error:(new DOMParser).parseFromString('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g id="Icon">\n<path id="Vector" d="M15.9998 26.6558C10.1118 26.6558 5.34375 21.8878 5.34375 15.9998C5.34375 10.1118 10.1118 5.34375 15.9998 5.34375C21.8878 5.34375 26.6558 10.1118 26.6558 15.9998C26.6558 21.8878 21.8878 26.6558 15.9998 26.6558ZM15.9998 24.4798C20.6718 24.4798 24.4798 20.7038 24.4798 15.9998C24.4798 11.3278 20.7038 7.51975 15.9998 7.51975C11.3278 7.51975 7.51975 11.2958 7.51975 15.9998C7.51975 20.6718 11.2958 24.4798 15.9998 24.4798ZM15.3278 9.34375H16.6718C17.0558 9.34375 17.3438 9.63175 17.3118 9.98375L16.9598 16.9278C16.9598 17.1838 16.7678 17.3438 16.5438 17.3438H15.4558C15.2318 17.3438 15.0398 17.1518 15.0398 16.9278L14.6878 9.98375C14.6878 9.63175 14.9758 9.34375 15.3278 9.34375ZM15.4558 19.4558H16.5438C16.9278 19.4558 17.2158 19.7438 17.1838 20.1278V21.1838C17.1838 21.5678 16.8958 21.8558 16.5438 21.8558H15.4558C15.0718 21.8558 14.7838 21.5678 14.7838 21.1838V20.1278C14.7838 19.7438 15.0718 19.4558 15.4558 19.4558Z" fill="currentcolor"/>\n</g>\n</svg>\n',"image/svg+xml").firstChild},Le=t((e=>{var t,i,a,d,r;return r=class extends(s(u,fe,w,g)(e)){constructor(){super(...arguments),t.add(this),d.set(this,o((e=>{e.length&&(e.forEach((({type:e,msg:s})=>{const o=n(this,t,"m",a).call(this,e);o.setContent(n(this,t,"m",i).call(this,{type:e,msg:s})),o.show()})),setTimeout((()=>this.actions.clearNotifications())))})))}init(){const e=Object.create(null,{init:{get:()=>super.init}});var t;return c(this,void 0,void 0,(function*(){yield null===(t=e.init)||void 0===t?void 0:t.call(this),this.subscribe(n(this,d,"f").bind(this),T)}))}},d=new WeakMap,t=new WeakSet,i=function({type:e,msg:t}){const s=Te[e],i=Object.assign((new DOMParser).parseFromString('<svg width="2em" height="2em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g id="Icon">\n<path id="Shape" d="M10.6712 12L7.27521 8.60406C6.90826 8.23711 6.90826 7.64216 7.27521 7.27521C7.64216 6.90826 8.23711 6.90826 8.60406 7.27521L12 10.6712L15.3959 7.27521C15.7629 6.90826 16.3578 6.90826 16.7248 7.27521C17.0917 7.64216 17.0917 8.23711 16.7248 8.60406L13.3288 12L16.7248 15.3959C17.0917 15.7629 17.0917 16.3578 16.7248 16.7248C16.3578 17.0917 15.7629 17.0917 15.3959 16.7248L12 13.3288L8.60406 16.7248C8.23711 17.0917 7.64216 17.0917 7.27521 16.7248C6.90826 16.3578 6.90826 15.7629 7.27521 15.3959L10.6712 12Z" fill="currentcolor"/>\n</g>\n</svg>\n',"image/svg+xml").firstChild,{slot:"close"});return`${(null==s?void 0:s.outerHTML)||""}${t}${i.outerHTML}`},a=function(e){return this.createNotification({mode:e,duration:"error"===e?0:3e3,position:"bottom-start",size:"sm"})},r})),Oe=t((e=>class extends(s(b,K,be,We,je,$e,ke,xe,Le)(e)){init(){const e=Object.create(null,{init:{get:()=>super.init}});var t;return c(this,void 0,void 0,(function*(){yield null===(t=e.init)||void 0===t?void 0:t.call(this)}))}})),Pe=s((e=>class extends(Oe(e)){}))(HTMLElement);customElements.define("descope-access-key-management-widget",Pe);export{Pe as default};
6
6
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -93,7 +93,7 @@ declare const AccessKeyManagementWidget: {
93
93
  close(): void;
94
94
  show(): void;
95
95
  remove(): void;
96
- "__#11927@#private": any;
96
+ "__#12022@#private": any;
97
97
  logger: {
98
98
  error(...data: any[]): void;
99
99
  warn(...data: any[]): void;
@@ -107,7 +107,7 @@ declare const AccessKeyManagementWidget: {
107
107
  type: "success" | "error";
108
108
  msg: string;
109
109
  }[]) => void;
110
- "__#11920@#isInit": boolean;
110
+ "__#12015@#isInit": boolean;
111
111
  connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & {
112
112
  (): void;
113
113
  (): void;
@@ -934,7 +934,7 @@ declare const AccessKeyManagementWidget: {
934
934
  tabIndex: number;
935
935
  blur: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
936
936
  focus: ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void);
937
- "__#11931@#NotificationDriverWrapper": new (refOrRefFn: Element | (() => HTMLElement), config: {
937
+ "__#12026@#NotificationDriverWrapper": new (refOrRefFn: Element | (() => HTMLElement), config: {
938
938
  logger: {
939
939
  error(...data: any[]): void;
940
940
  warn(...data: any[]): void;
@@ -947,7 +947,7 @@ declare const AccessKeyManagementWidget: {
947
947
  close(): void;
948
948
  show(): void;
949
949
  remove(): void;
950
- "__#11927@#private": any;
950
+ "__#12022@#private": any;
951
951
  logger: {
952
952
  error(...data: any[]): void;
953
953
  warn(...data: any[]): void;
@@ -972,7 +972,7 @@ declare const AccessKeyManagementWidget: {
972
972
  close(): void;
973
973
  show(): void;
974
974
  remove(): void;
975
- "__#11927@#private": any;
975
+ "__#12022@#private": any;
976
976
  logger: {
977
977
  error(...data: any[]): void;
978
978
  warn(...data: any[]): void;
@@ -982,21 +982,21 @@ declare const AccessKeyManagementWidget: {
982
982
  readonly asyncEle: Promise<Element>;
983
983
  readonly ele: Element;
984
984
  };
985
- "__#11926@#errorCbsSym": symbol;
986
- "__#11926@#loadCbsSym": symbol;
987
- "__#11926@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>) & (() => Promise<any>) & (() => Promise<any>);
988
- "__#11926@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
989
- "__#11926@#handleFallbackScript": ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>);
990
- "__#11926@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
991
- "__#11926@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
992
- "__#11926@#descopeUi": Promise<any>;
985
+ "__#12021@#errorCbsSym": symbol;
986
+ "__#12021@#loadCbsSym": symbol;
987
+ "__#12021@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>) & (() => Promise<any>) & (() => Promise<any>);
988
+ "__#12021@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
989
+ "__#12021@#handleFallbackScript": ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>);
990
+ "__#12021@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
991
+ "__#12021@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
992
+ "__#12021@#descopeUi": Promise<any>;
993
993
  readonly descopeUi: Promise<any>;
994
- "__#11926@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
994
+ "__#12021@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
995
995
  loadDescopeUiComponents: ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>) & ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>) & ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>) & ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>);
996
- "__#11926@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>) & (() => Promise<unknown>) & (() => Promise<unknown>);
996
+ "__#12021@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>) & (() => Promise<unknown>) & (() => Promise<unknown>);
997
997
  readonly config: any;
998
- "__#11923@#_configResource": any;
999
- "__#11923@#fetchConfig": (() => Promise<{
998
+ "__#12018@#_configResource": any;
999
+ "__#12018@#fetchConfig": (() => Promise<{
1000
1000
  projectConfig: _descope_sdk_mixins.ProjectConfiguration;
1001
1001
  executionContext: {
1002
1002
  geo: string;
@@ -1045,17 +1045,17 @@ declare const AccessKeyManagementWidget: {
1045
1045
  headers: Record<string, string>;
1046
1046
  }>);
1047
1047
  readonly projectId: string;
1048
- "__#11922@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
1049
- "__#11921@#observeMappings": {};
1048
+ "__#12017@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
1049
+ "__#12016@#observeMappings": {};
1050
1050
  observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
1051
1051
  observeAttributes: ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
1052
- "__#11919@#logger": {
1052
+ "__#12014@#logger": {
1053
1053
  error(...data: any[]): void;
1054
1054
  warn(...data: any[]): void;
1055
1055
  info(...data: any[]): void;
1056
1056
  debug(...data: any[]): void;
1057
1057
  };
1058
- "__#11919@#wrapLogger": ((logger: Partial<{
1058
+ "__#12014@#wrapLogger": ((logger: Partial<{
1059
1059
  error(...data: any[]): void;
1060
1060
  warn(...data: any[]): void;
1061
1061
  info(...data: any[]): void;
@@ -7945,7 +7945,7 @@ declare const AccessKeyManagementWidget: {
7945
7945
  "__#6@#initWidgetRoot": (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
7946
7946
  readonly widgetId: string;
7947
7947
  fetchWidgetPage: ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>) & ((filename: string) => Promise<string>);
7948
- "__#11930@#ModalDriverWrapper": new (refOrRefFn: Element | (() => HTMLElement), config: {
7948
+ "__#12025@#ModalDriverWrapper": new (refOrRefFn: Element | (() => HTMLElement), config: {
7949
7949
  logger: {
7950
7950
  error(...data: any[]): void;
7951
7951
  warn(...data: any[]): void;
@@ -7954,7 +7954,7 @@ declare const AccessKeyManagementWidget: {
7954
7954
  };
7955
7955
  }) => {
7956
7956
  setContent(template: HTMLTemplateElement): void;
7957
- "__#11929@#private": any;
7957
+ "__#12024@#private": any;
7958
7958
  beforeOpen: () => void | Promise<void>;
7959
7959
  afterClose: () => void;
7960
7960
  nodeName: string;
@@ -7962,7 +7962,7 @@ declare const AccessKeyManagementWidget: {
7962
7962
  open(): Promise<void>;
7963
7963
  reset(): void;
7964
7964
  remove(): void;
7965
- "__#11927@#private": any;
7965
+ "__#12022@#private": any;
7966
7966
  logger: {
7967
7967
  error(...data: any[]): void;
7968
7968
  warn(...data: any[]): void;
@@ -8020,14 +8020,14 @@ declare const AccessKeyManagementWidget: {
8020
8020
  }[]) => void;
8021
8021
  "__#7@#onColumnSortChange": (this: any, ...args: any[]) => void;
8022
8022
  readonly theme: _descope_sdk_mixins.ThemeOptions;
8023
- "__#11932@#_themeResource": Promise<void | Record<string, any>>;
8024
- "__#11932@#fetchTheme"(): Promise<Record<string, any>>;
8025
- readonly "__#11932@#themeResource": Promise<void | Record<string, any>>;
8026
- "__#11932@#loadGlobalStyle"(): Promise<void>;
8027
- "__#11932@#loadComponentsStyle"(): Promise<void>;
8028
- "__#11932@#loadFonts"(): Promise<void>;
8029
- "__#11932@#applyTheme"(): Promise<void>;
8030
- "__#11925@#debuggerEle": HTMLElement & {
8023
+ "__#12027@#_themeResource": Promise<void | Record<string, any>>;
8024
+ "__#12027@#fetchTheme"(): Promise<Record<string, any>>;
8025
+ readonly "__#12027@#themeResource": Promise<void | Record<string, any>>;
8026
+ "__#12027@#loadGlobalStyle"(): Promise<void>;
8027
+ "__#12027@#loadComponentsStyle"(): Promise<void>;
8028
+ "__#12027@#loadFonts"(): Promise<void>;
8029
+ "__#12027@#applyTheme"(): Promise<void>;
8030
+ "__#12020@#debuggerEle": HTMLElement & {
8031
8031
  updateData: (data: {
8032
8032
  title: string;
8033
8033
  description?: string;
@@ -8036,11 +8036,11 @@ declare const AccessKeyManagementWidget: {
8036
8036
  description?: string;
8037
8037
  }[]) => void;
8038
8038
  };
8039
- "__#11925@#disableDebugger"(): void;
8040
- "__#11925@#enableDebugger"(): Promise<void>;
8039
+ "__#12020@#disableDebugger"(): void;
8040
+ "__#12020@#enableDebugger"(): Promise<void>;
8041
8041
  readonly debug: boolean;
8042
- "__#11925@#handleDebugMode"(): void;
8043
- "__#11925@#updateDebuggerMessages"(title: string, description: string): void;
8042
+ "__#12020@#handleDebugMode"(): void;
8043
+ "__#12020@#updateDebuggerMessages"(title: string, description: string): void;
8044
8044
  };
8045
8045
  };
8046
8046